Select to view content in your preferred language

jobExtendedProperty() values as dynamic url Send Web Request input

476
1
04-25-2024 01:40 PM
RyanDickinson1
Regular Contributor

Has anyone been successful in using a job extended property to populate the url for a send web request step? Doesn't seem to work using it directly as the url:

RyanDickinson1_0-1714077501671.png

Use case is a GIS analyst needs to update a definition query on a service. Analyst would use survey123 to enter the url and the new definition query. Using rest api, call remove from definition then add the new definition.

 

I did notice in the documentation that the step should only be configured to trusted sources. 

RyanDickinson1_0-1714077911395.png

 



0 Kudos
1 Reply
r_hanson
Emerging Contributor

Unfortunately the URL field does not seem to allow for Arcade expressions. But if there is a portion of a static URL that you need to populate with a dynamic value, this can be done using a path variable, which allows for Arcade inputs.

This is called by placing a ':' before the variable portion of the URL such as:

https://sample.website.com/api/:dynamicvalue/trigger

In the above example you could set an Arcade expression to populate the 'dynamicvalue' portion of the URL.

0 Kudos