Notification trigger through workflow using runscript
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 01:36 AM
Hi All,
I have a requirement in catalog item. there are some variables.
Variables Name Type
1) Previous Assistant - Reference(sys_user)
2)New Assistant - Reference(sys_user)
3)People to be supported - List collector(sys_user)
I'm currently triggering the notification to New assistant & people to be supported.
but my requirement is to trigger notification to all 3 variables contains names. Please let us know how can i achieve this.
For more information please find the attached documents.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 02:30 AM
Hi,
In param2 of eventQueue method you can add the sys_id of previous assistant.
var oldAssistant="";//get it from variable
var newAssistant="";//get it from variable
var parameter2=oldAssistant+","+newAssistant;
Set "parameter2" in place of current.variables.new_assistant_name.
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 03:25 AM
Hi @Saurabh Gupta ,
we will select different different user when we select for different request. we can not pass one user sys_id here . I hope you understand. Please let us know in this case how we can achieve.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 03:27 AM
Hi,
Did you check this?
var oldAssistant="";//get it from variable with syntax current.variables.name_of_variable
var newAssistant="";//get it from variable with syntax current.variables.name_of_variable
var parameter2=oldAssistant+","+newAssistant;
Set "parameter2" in place of current.variables.new_assistant_name.
Thanks and Regards,
Saurabh Gupta
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 05:52 AM
Hi@Saurabh Gupta ,
I have tried with below highlighted method it's not triggering as expected.
Please let us know how can I achieve this.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2023 05:57 AM
Hi,
For variables ab and ac please remove the quotes "", it should be like current.variables.name_of_var
Thanks and Regards,
Saurabh Gupta