on 2018 Nov 22 10:50 AM
Hi experts
The requirement is to pass the top paramter of the Odata API query dynamically.
Based on the input paylod value, this top parameter should be modified and passed to the API.
For ex : Below is the query where we need to pick the top 10 Campaign objects.
https://xxxxxx.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_CAMPAIGN_SRV/Campaigns?$top=10&$filter=CampaignCategory eq 'abc' and CampaignLifecycleStatus eq '2'&$orderby=CampaignPriority desc&$format=json&$expand=CampaignAssignedTargetGroups
This value 10 should change based on the input payload value ( we could also maintain a value mapping for the same)
Kindly provide your suggestions.
Regards
Sudarvizhi P
Request clarification before answering.
Thanks Sriprasad Shivaram Bhat. Let me try this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sudarvizhi,
Add content modifier just before your request reply and set the header [ For Ex topval ] with whatever value you need and call the same in your channel like below
https://xxxxxx.s4hana.ondemand.com/sap/opu/odata/sap/API_MKT_CAMPAIGN_SRV/Campaigns?$top=${header.topval}&$filter=CampaignCategory eq 'abc' and CampaignLifecycleStatus eq '2'&$orderby=CampaignPriority desc&$format=json&$expand=CampaignAssignedTargetGroups
Regards,
Sriprasad Shivaram Bhat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
66 | |
9 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.