I'm currently trying to viewer.model.getBulkProperties2() because I need the externalIds of the model. I've been using a loop with getProperties() to get the externalId but whenever I try it with very large NWDs firefox / chrome crashes.
The thing is, even if I specify in the options object that I need the external ids with needsExternalId:true, the function is not returning them. This is the affected portion of my code :
viewer.model.getBulkProperties2(dbids,{propFilter:params,needsExternalId:true,ignoreHidden:false,categoryFilter:null},(res)=>{
console.log(res)
});
The property I'm using is just Name, and this is the returned res variable:
[
{
"dbId": 2,
"properties": [
{
"displayName": "Nombre",
"displayValue": "Nivel 1",
"displayCategory": "Datos de identidad",
"attributeName": "Name",
"type": 20,
"units": "",
"hidden": false,
"precision": 0
}
]
},
{
"dbId": 3,
"properties": [
{
"displayName": "Nombre",
"displayValue": "Nivel 2",
"displayCategory": "Datos de identidad",
"attributeName": "Name",
"type": 20,
"units": "",
"hidden": false,
"precision": 0
}
]
}
]
Am I messing anything up?