AshaIT | 2024-03-19 15:13:05 UTC | #1
Hi, I am trying to manipulate response and trying to filter fields using translation map. I am using info from one of the old posts
{ "translationMap": { "postcodeValue": "$.['post code']", "countryValue": "$.country", "countryabbrevValue": "$.['country abbreviation']", "placesValue": "$.places" }, "successTemplate": "{\"post code\": ${postcodeValue}, \"country\": ${countryValue}, \"country abbreviation\": ${countryabbrevValue}, \"places\": ${placesValue}} " }
I have replaced my values with this but when I test I am getting error - Unable to resolve Key Balance:, Does this mean unable to find this field in SAP ?
{ "translationMap": { "Balance": "$.['Balance']", "DueDate": "$.['DueDate']", "Amount": "$.['Amount']" ]",
}, "translationMapDefaults": {}, "successTemplate": "{\"Balance\": ${Balance} ,\"DueDate\": ${DueDate},\"Amount\": ${Amount}}" }
Any help will be appreciated !1 Thanks
Jason_Mathison | 2024-03-19 15:17:54 UTC | #2
If you haven't already, please take the output from the endpoint and test your json path on a tool like: https://www.javainuse.com/jsonpath and verify that the json path you are using for 'balance' gets you the results that you want.
If you are unable to resolve your issue that way, please post the response from the endpoint so we can help you out.
--Jason
system | 2024-04-19 15:18:02 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 25279