[Mobile Agent] Parameter Screen with Reference Input with Autofill Variable of Type User

Community Alums
Not applicable

Hi,

In Agent Mobile application I have created an action to create new Incident using Parameter Screen configuration with inputs.

I have an input Caller type Reference. I want to autopopulate field with currently logged user.

find_real_file.png

find_real_file.png

I use input Autofill variable with type User, but it fills the field with sys id instead of display name.

Variable Type user according to documentation do not have any attributes to define.

find_real_file.png

find_real_file.png

To achieve my goal I have also tried to use Variable type Scripted, with attribute Script and Value reference to Script Include where I return display name of logged user, but it seems like Script Include is not accessed. With this config there is no autofill at all.

find_real_file.pngfind_real_file.png

PS. I had also tried simple return of gs.getUserDisplayName().

 

Could you help please?

7 REPLIES 7

palanikumar
Mega Sage

Check whether the sys_id displayed caller field is valid user and matching with current logged in user

Then check whether the user record matches the condition mentioned in the second screenshot (company.sys_id=<sys_id>)

Thank you,
Palani

Community Alums
Not applicable

Yes, sys id is of currently logged in user and it match the condition mentioned in conditions attributes

Are you facing this issue with all the reference field or only caller?

Populate Assigned to field and check whether you see sys_id or the actual user name

Thank you,
Palani

Community Alums
Not applicable

With Assigned to it's the same.

find_real_file.png