cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass dynamic ObjectID/UUID for external Rest service integration in ABSL

0 Kudos
1,083

Hello Experts,

For Update Operation (PUT/PATCH), I need to pass ObjectID/UUID for external Rest integration within URL end path, How to achieve this?

Using URL parameters we can pass parameters, but not Object ID in below required format and that will end up in key & value pair which is not accepted for Update Operation.

URL format with dynamic ObjectID: https://host/endpath('ObjectID')

Thanks,

Siddu

View Entire Topic
jravnik
Participant

Hi Siddu,

you can achive this by using the WebServiceUtilities.ExecuteRESTService function.

The 5th parameter passed to this function determines the HTTP resource: "Resource name of the rest service that is concatenated to the defined URL in the service of the communication arrangement"

So define the 'static' part within your communication arrangement like "/endpath" and set this parameter to "('[ObjectID]')". The called URL will then look like this: [Host]/endpath('[ObjectID]')

See 7.2.5.1.20 Web Service Utilities within the Studio Guide for further information: https://help.sap.com/viewer/cbcebe3cfb1647a8b0322c18dbb0b481/2020.02/en-US/75d2f40373e21014a153e5dcf...

Best regards
Jürgen