how to auto populate logged in user in Requestor field if we take reference as Contact table in CSM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 08:12 AM
Hi Community,
how to auto populate logged in user in Requestor field if we take reference as Contact table in Record producer in CSM
Please find the screenshots
Please suggest how to auto populate logged in user in Requestor field if take reference as contact table instead of sys_user table
Thanks,
Srinivasu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 08:37 AM
Hi @Srinivasu2 ,
Set the default value for Requestor.
javascript:gs.getUserID();
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 09:31 AM
I used custmer_contact table as reference instead of sys_user, you can find out this in above screenshot
Could you please suggest?
Thanks,
Srinivasu Sagiraju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 09:41 AM
the logged in user will be there in user table.
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2024 10:34 AM
Hey @Srinivasu2
Kindly follow below steps.
1. Set the default value as below
javascript:gs.getUserID();
2. As the Requested for is read only field please add the reference table as user instead of contact. (optional as there are chances that logged in user record may not be present in contact list)
Kindly mark helpful or accepted.
Thank you!