DC 5.2.0 6.2.4 - GetMetafields
This search is used to get metadatafields in a metadatagroup. To get the metadatagroupid see DC 5.2.0 6.2.3 - GetMetadataGroups
URL : /SearchService.js
Method : POST
Auth required : Yes
Required parameters
Name | Example | Description |
---|---|---|
SearchName | DigiZuite_system_metadatav2_listGroupsMetafields | Fixed parameter that identifies the endpoint method. |
metafieldgroupid | 10025 | metafieldgroupid of a metadatagroup |
accessKey | 2d8319f4-7a57-4ca0-a027-c44c2f259aac | accessKey for api |
Optional parameters
Name | Example | Description |
---|---|---|
metafielditemids | 5537 | itemid of metafield |
cUrl data example
Success Response
Code : 200 OK
Content example
{ "success": true, "error": "", "total": "0", "items": [{ "itemId": "5540", "note": "", "item_metafield_valueid": "", "metafieldLabelId": "50727", "is_checkSpellEN": "0", "metafieldLabellabel": "Description", "metafieldLabelversionlabel": "", "metafieldLabellanguageid": "3", "metafieldLabelSortindex": "0", "metafieldLabelVisibilityRegex": "", "metafieldLabelCulture": "", "metafieldLabelDefaultvalue": "", "metafieldid": { "metafieldid": "50182", "metafieldItemGuid": "C8BB4AF3-1598-4EA4-8D7A-98D54EEAD977", "metafieldName": "Description", "metafieldAutoTranslate": "0", "metafieldIsRequired": "0", "metafieldRecurisveToRoot": "1", "metafieldIsRequiredUpload": "0", "metafieldReadonly": "0", "metafieldFormfieldsize": "0", "metafieldItemId": "5537", "metafieldSecWriteaccess": "1", "iterated": "0", "is_html": "0", "is_flashhtml": "0", "treeview_is_expanded": "0", "treeview_format": "0", "show_extra_field": "0", "item_datatypeid": "70", "metafieldSortindex": "20", "metafieldMaxlength": "0", "metafieldComboViewType": "0", "metafieldVisibilityMetafieldId": "", "metafieldVisibilityRegex": "", "metafieldCulture": "", "metafieldCssClass": "", "metafieldCssInline": "", "isCaseSensitive": "0", "metafieldValidationId": "", "metafieldValidationType": "", "metafieldValidationContent": "", "metafieldValidationMessage": "" }, "metafieldReferenceSelectMode": "", "metafieldReferenceMaxItems": "" }] }
Error Response
Code : 200 OK
Content example
{ "success": false, "total": 0, "error": "A critical exception occurred while we executed the search.\r\n", "items": null, "warnings": [{ "Severity": 150, "Code": 420, "Description": "A critical exception occurred while we executed the search." }] }