333
Views
5
Comments
how to call rest api from server action through Posthttprequest or anything else
Question

Hi

i have one use case.for every record i have separate url.i have to call the api from client action because all url are not same.can anyone plz tell me how to call that dynamic api and i have to pass some value through JSON format.

2023-08-28 07-00-10
Paulo Torres
Champion

Hi,

How do you build the URL to call? URL is dynamic but domain is the same? What change in your URL?

2023-06-14 08-52-52
Arkyadeep Bharadwaj

Transid is different and url is also different

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Completely different or just some parts like the domain?

2023-08-28 07-00-10
Paulo Torres
Champion

You need this or something similar: https://www.outsystems.com/forge/component-overview/9441/dynamic-rest-api

Another way is to call the API with JavaScript.

Regards

2022-12-09 09-54-41
Gaurav Rawat

Hi Arkyadeep Bharadwaj,

in this way u can call the api from javascript using httprequest object 

Please find attached oml for this, check screen with name APITestJs.

APIDemoJs.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.