How to convert sysid to name on dl member field

Rajan Kumar5
Tera Contributor

Hi Team, Good morning,
For this, I have created script include and client script.

when we select list modify field as assignment group and member is auto populate but I am facing the issue like 1st orLast  user is showing as sysid.
Team please help me 

RajanKumar5_0-1717732458533.png

 

2 REPLIES 2

Dnyaneshwaree
Mega Sage

Hi,

Have you used: 

1. gr.getDisplayValue('field_name');  OR

2. gr.field_name.getDisplayValue();  OR
3. user = field_name.getDisplayValue();


Or 

Go to the script include and change the line:

list.push(grm.getValue('sys_id'));

to

list.push(grm.getValue('grp_member'));  // if used array or list then add comma seperated values.


If it is not work then please elaborate your issue.

If my answer helps you please mark as accepted/helpful by adding thumb in bottom of my post.

Thank You!!

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

SanjivMeher
Kilo Patron
Kilo Patron

Not sure how you are populating that list field. But that field needs to set to list of sysids separated by commas.

Ex. current.dl_members = 'sysid1,sysid2,sysid3';


Please mark this response as correct or helpful if it assisted you with your question.