Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 06:25 AM
Scenario: As per the business requirement, i am representing a scenario. I have 2 inputs from Action as below, how can i pass these inputs value to output variables Name and Email. PFA for output structure.
Inputs:
var name = inputs.incident.caller.name;
var email = inputs.incident.caller.email;
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 06:55 AM
I tried a lot and got the solution. below is the script.
(function execute(inputs, outputs) {
// ... code ..
var number = inputs.incident.number;
var name = inputs.incident.caller_id.name;
var email = inputs.incident.caller_id.email;
var test = {
'Number':number,
'Callers':{
'results':[{
'Name':number,
'Email':email
}]
}
}
outputs.parent_field = test;
})(inputs, outputs);
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 06:55 AM
I tried a lot and got the solution. below is the script.
(function execute(inputs, outputs) {
// ... code ..
var number = inputs.incident.number;
var name = inputs.incident.caller_id.name;
var email = inputs.incident.caller_id.email;
var test = {
'Number':number,
'Callers':{
'results':[{
'Name':number,
'Email':email
}]
}
}
outputs.parent_field = test;
})(inputs, outputs);