Defining the caller in an inbound action

Sebaslag
Giga Expert

Hello
I'm trying to set the caller of an incident in an inbound action but it's still set to Guest. Yet my user does exist.

it's supposed to be simple:

current.caller_id = gs.getUserID();

This return me a id which doesn't appear to be the sys_id of whoever sent the email.

Why?

1 ACCEPTED SOLUTION

Madhava_Kumar
Mega Guru

Hi

gs.getUserID() will work when any user is logged in. 

If the sender email matches to any of the users in your instance, that will be applied here otherwise always it will take as Guest.

View solution in original post

3 REPLIES 3

Madhava_Kumar
Mega Guru

Hi

gs.getUserID() will work when any user is logged in. 

If the sender email matches to any of the users in your instance, that will be applied here otherwise always it will take as Guest.

it's my mistake, there was a mistake in my email on this instance. Sorry and thank you for your reply.

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

current.caller_id = gs.getUserID(); should work.

 

Check if the mail ID using which you are creating the Incidents is available on the user table and active.

 

Please mark answer correct/helpful based on Impact.