- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2019 09:49 PM
I am trying to create tasks based on selections from a list collector variable in a request item.
I have the following script that creates the tasks correctly but I am not able to set the description of the task with the value from the List collector variable.
Line 18 sets all the short description values the same.
The Assigned to value is correct (not displayed in the image).
I need to enter the name selected in the List collector in the short description field, to later create an approval on the task.
Any assistance is appreciated.
Thanks
Monique
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-16-2019 07:09 PM
Hi Air,
Thanks for following up.
I solved the issue by commenting out lines 9 -`12.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2019 10:21 PM
Have you tried logging, answer[i].nm?
Regards
Air
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2019 04:54 PM
Hi Air,
I have added logs on line 10, 15 and 25.
The values are correct on line 10 but not 15 or 25.
Thanks
Monique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-14-2019 09:43 PM
Hi Monique,
Can you update the while for pushing values in answer array with below script
while(gr.next()){
var jsonobj = {};
jsonobj["nm"]= areas.name.toString();
jsonobj["cont"]= areas.contact.toString();
answer.push(jsonobj);
}
Regards
Air
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2019 10:07 PM
Hi Monique,
Did that work?
Regards
Air