JSON Object - How to create?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 11:06 AM
I have a field on the Task table called 'u_input_parms' that will be used in orchestration. The idea is to have this field as a JSON Object
that I'll use to pass values into my workflow/orchestration.
Currently, the 'u_input_parms' field will have 'workflow name' to fire, input_parm1 and input_parm2.
My question, how do I create this field as a JSON object so that I can call 'Input_parm1' etc? We are on Helsinki and my understanding
is that the json function isn't available until a later version.
- Labels:
-
Best Practices
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-26-2017 08:00 AM
You may just need to do this:
var parser = new JSON();
var obj = '{input1:' + uatm.u_input_parm_1_add.u_input_parm_1 + ',input2:' + uatm.u_input_parm_2_add + '}';
I think it was seeing your input2 as "input2", with quotations.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2017 11:27 AM
Hi Rebcca,
Check the below it may help you
Is is possible to pass a custom object in parm1/2 in an eventQueue call?
Mark Correct if this solves your issue and also hit Like and Helpful if you find my response worthy based on the impact.