- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2018 07:53 AM
Hi,
I need to convert catalog variables (application, application process, environment, versions and components) selected by the user into JSON format so that I can use it for deployment in the workflow.
Below is the format:
{
"application": "hello Application",
"applicationProcess": "hello App Process",
"environment": "helloDeploy",
"versions": [{
"version": "1.0",
"component": "helloWorld"
}]
}
Can you assist me in implementing this requirement?
Solved! Go to Solution.
- Labels:
-
Orchestration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-04-2018 08:34 AM
Do this
var test = { "application": current.variables.var1 , "applicationProcess":current.variables.var2, "environment":current.variables.var3, "versions": [{ "version": "1.0", "component": "helloWorld" }] }
Please mark this response as correct or helpful if it assisted you with your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-10-2018 01:35 PM
It depends on the end point how they formatted and sending the data. So you don't have a control on that. You will have to parse it at servicenow on whatever format they send
Please mark this response as correct or helpful if it assisted you with your question.