When configuring the Sync Query within Adobe Experience Manager, you may want to apply wrapped conditions to narrow down the content in scope of the sync.
Wrapped conditions are advanced filtering conditions, and the API equivalent of the advanced search filtering options available in the IntelligenceBank DAM search side panel. It can be used for Dates, Filters and Custom Form Fields.
A basic understanding of the API documentation is required for implementing wrapped conditions, though this article will aim at making it as easy as possible to configure with limited technical knowledge.
There are 2 main ways to identify which values are to be inputted when configuring wrapped conditions.
Using Postman & the API Documentation
- Visit https://apidoc.intelligencebank.com, and click Run in Postman in the top right corner of the screen. Follow the next steps and open the Collection in the web or desktop (software installation is required for the later).
- Authenticate to your IntelligenceBank platform using a non-SSO user account.
- Retrieve details of the Custom Form Fields or Filters (Admin permission required) that are available in your IntelligenceBank platform, and identify the uuid or _id of the field you want to apply as a filtering condition.
- Review the documentation on how to apply wrapped conditions for different field types.
- Apply the values in Adobe Experience Manager.
Inspect Element in Google Chrome
This trick will allow you to apply the filtering conditions in the front end and retrieve the corresponding wrapped conditions without the need to be familiar with any API documentation.
In Chrome, open the Inspect element console (right click > Inspect Element). This must be open before going to your IntelligenceBank platform.
Go to your IntelligenceBank platform, and navigate to the Resources area.
In the search side panel, apply your filtering queries.
Then in the Console, select Network > WS, and the last item listed under Name - this should display data on the right that looks like the below.
From the bottom, identify the last query that mentions "suggest_search".{search_Params... Once you have found it, right click and select Copy message.
Use a tool that can "beautify" the JSON message that you just copied - e.g. https://codebeautify.org/jsonviewer.
You will know see the wrapped conditions that correspond to the filtering conditions applied in the front end already constructed for you.
Simply copy and paste the values into the corresponding fields in Adobe Experience Manager to configure the wrapped conditions there.
If you are facing any issue, please do not hesitate to contact your Customer Success Manager or contact us here - our team will be more than happy to get these values for you.
Comments
0 comments
Please sign in to leave a comment.