Dynamic URL in Service Callout

Hello Apigee Team,

I am not able to use target URL value (from KVM thru JavaScript or AssignMessage policy) in the <URL> element of ServiceCallout policy

tried in javascript

context.setVariable("servicecallout.servicecalloutpolicyname.target.url",newURL);

and in servicecallout

<HTTPTargetConnection>  
	<Properties/>  
	<URL>https://dummy-target-url.com</URL> 
</HTTPTargetConnection>

What could be the reason? Is there any other approach to make the dynamic target URL for servicecallout <URL>?

Thanks!

0 1 2,088
1 REPLY 1

Hi @TGP , we have a similar question in this forum, please have a look at this question from @Dino-at-Google,

https://community.apigee.com/questions/24408/how-can-i-dynamically-set-the-url-for-a-servicecal.htm...