Fetching target server in java script for callout

Not applicable

I am trying to a callout from javascript and the callout url is specified in the Target Servers. How to get the target server configuration in js so that I can make a callout? I am not able to use target.host as it is available only in the postflow. Thanks.

0 2 1,004
2 REPLIES 2

@Annapoorna Krishnamoorthy,

Please refer to the below community posts which talk about the various options in which you can fetch/use target server in Javascript :

How to make a call to target server via Javascript callout?

get target servers into JS

Regards,

Amar

Thank you Amar. Shall check it out