Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Changing currency of request via scripted rest api

Wasd123
Tera Expert

We have a scripted rest api what is based on the incoming JSON message it raises a catalog item (request, request item and tasks). All works fine, except the price field in the request.

Wasd123_0-1709727991091.png

 While the amount is passed over correctly I can't seem to find a way to change the currency based on the incoming message. Is there a way to update the currency based on the JSON message either via the cart api or business rule?

 

1 REPLY 1

Tony Chatfield1
Kilo Patron

Hi, unfortunately your post contains no details of how your transform is configured.
How are you populating the currency field?
The docs indicate 3 digit currency code 'space' value eg, EUR 1.234,56

Default currency values in import and export (servicenow.com)