The CreatorCon Call for Content is officially open! Get started here.

Notification trigger through workflow using runscript

Sirri
Tera Guru

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

10 REPLIES 10

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

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

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

Hi@Saurabh Gupta  ,

 

I have tried with below highlighted method it's not triggering as expected.

Sirri_0-1702907500376.png

Please let us know how can I achieve this.

Thank you

Hi,

For variables ab and ac please remove the quotes "", it should be like current.variables.name_of_var


Thanks and Regards,

Saurabh Gupta