FlowDesigner javascript:gs.getUserID() in IF logic not working

Siva82
Tera Expert

Hi All,

 

Flow Designer javascript:gs.getUserID() in IF logic not working

 

Please refer the attachment.

Can please help me on that.

 

Siva82_0-1691042461986.png

Siva82_0-1691043308125.png

 

 

8 REPLIES 8

"Hi Harish,

How to create new action, Can you please help me on that.

Thank you"

Hi Siva, you can watch the below video on the steps

https://www.youtube.com/watch?v=HQZCUQQd0ro

Regards
Harish
If you want to support me then buy me a coffee- https://www.buymeacoffee.com/saaswnow This is ServiceNow Flow Designer Training. ServiceNow has been marketing themselves as low code platform and in one of the recent release they came up with flow designer feature which has totally changed the way

Thank you so much Harish.

Anil Lande
Kilo Patron

Hi,

It is not good practice to use current loggedIn user in FLOW.

Flow is for automation and if the ticket is processes in background on behalf of System user then gs.getUserID() will return system user id.

I would suggest to use one of Variable/Field available on form to set assigned to.

 

It would be helpful if you can provide the condition in which case it should be loggedIn user, is there any filed/variable storing that information?

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande