EBDN - Community - Question & Answers

  Thursday, 16 December 2021
  1 Replies
  1.1K Visits
0
Votes
Undo
I try to use the command : http://webServer/BasicDataService/GetObjectData/{DATABASE}
for find a folder in catalog

I use this body :

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


I always receive Bad Request, where is my mistake ?

Can I apply null on object not used, like TranslateSetting and UnitSystemSetting ?
For building my json I deserialize the ObjectDataRequest in library.