Monday, 20 December 2021
  2 Replies
  2.2K Visits
0
Votes
Undo
I try to find one folder with specific designation by web service.

I try to use BasicDataService/GetObjectData/{DATABASE} with this json body

{
"StartObjectId": "00000000-0000-0000-0000-000003128F43",
"SearchMode": 1,
"ExtendedSearchMode": 0,
"UseWorksheet": false,
"OutputDesignation": true,
"OutputLockStructure": true,
"OutputProtected": false,
"FullNameLoadMode": 0,
"OutputTimestamp": false,
"OutputAllAttributes": 0,
"OutputObjectIdList": null,
"AttributeFilterList": [{
"FilterExpressions": [{
"FilterExpressions": [{
"FilterExpressions": [{
"CompareOperator": 0,
"AttriubteId": 5,
"Value": "CodeBook - awaiting processing"
}
],
"Operator": 0
}
],
"Operator": 0
}
]
}
],
"OutputAttributeList": [{
"AttributeId": 5,
"TargetUnit": null
}
],
"OutputObjectKindList": [{
"CoverId": 111
}
],
"OutputAssocList": null,
"TranslateSetting": null,
"UnitSystemSetting": null
}


All folders are returned, the filter on attribute designation not work.
Where is my mistakes ?

For information, I use the lib Aucotec.EngineeringBase.Server.Service, I build an object ObjectDataRequest and serialize by

Dim jBodyContent As String = JsonConvert.SerializeObject(body) ', Formatting.Indented
Using bodyContent = New StringContent(jBodyContent, Encoding.UTF8, "application/json")

I try to serialize on xml but I receive an error about the OutputObjectIdList use an interface (IList).