How to get contact details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 01:08 AM
Hello Community,
Anyone aware how to get login contact account using glide method??
thanks,
Nagesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 01:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 01:21 AM - edited 01-19-2023 01:21 AM
In CSM we have account and contacts and we looking for login contact account nformation how to get it.
For ex: Alex contact account is abx
We are looking for the way to get abx with glide user object or is there any way toget the details
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 01:24 AM
Hi @Nagesh5 ,
Then you can use below sample code. just change the field backend name as per your table.
var gr = new GlideRecord("customer_contact");
gr.query();
while (gr.next()) {
gs.info(gr.contact); //Write down your field name here instead of contact
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-19-2023 01:16 AM
If you are using at Server level
gs.getUserId()
Below link
If you are using at client level
g_user.getUserId()
Below link