How do I populate current logged in user as Assigned To?

Sid_Takali
Kilo Patron
Kilo Patron

I want to auto populate current logged in user as Assigned To and current logged in user's Primary assignment Group as Assignment Group on Case form. Now I have created Display BR and getting current userID and passing it onLoad Client Script through scratchpad variable. but it is not working in workspace.  I have made Client Script UI Type for "All".  I want know alternative ways for this use case?

11 REPLIES 11

Teju Dhoran
Kilo Sage
Kilo Sage

Prince Arora
Tera Sage
Tera Sage

@Sid_Takali ,

Can you please try in the client script only - g_user.userID
g_user is the client side API, you don't need to go for the display BR.

If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact.
 

priyankar umesh
Tera Contributor

Use display bussiness rule and in condition use assigned to is empty

and in advance use this code 

it will auto populate logged in use

Rajesh Chopade1
Mega Sage

Hi @Sid_Takali 

you can use: javascript:gs.getUserID(); ------- This will give you the current logged in user.

 

Mark my answer helpful and correct if it helps to resolve your issue.

 

Thank you

Rajesh.