How to pass current logged in user in gs.evenQueue in script action.

Tarasingh26
Tera Expert

Hi Team,

I want to send email notification to current logged in user from script action. If we achieve this using BR in this way it is easy. My scenario is to send from script action. Attached is the script action.

How this can be achieved? Any help will be much appreciated.

Thanks,

Tara Singh 

1 ACCEPTED SOLUTION

swathisarang98
Giga Sage
Giga Sage

Hi @Tarasingh26 ,

 

You can use gs.getUserID(); for String_Parm1.

 

and one more thing you have to pass object aswell, so you have to gliderecord to table on which you are creating notification and pass that object in the event queue,

 

syntax of calling an event,

gs.eventQueue('event_name', gliderecord_object, 'string_parm1', 'string_param2', 'string_queue')

 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang

View solution in original post

1 REPLY 1

swathisarang98
Giga Sage
Giga Sage

Hi @Tarasingh26 ,

 

You can use gs.getUserID(); for String_Parm1.

 

and one more thing you have to pass object aswell, so you have to gliderecord to table on which you are creating notification and pass that object in the event queue,

 

syntax of calling an event,

gs.eventQueue('event_name', gliderecord_object, 'string_parm1', 'string_param2', 'string_queue')

 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang