I want to show account related contacts based on account selection in Record producer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2022 12:45 AM
I want to show account related contacts based on account selection in Record producer. Can anyone help me how to achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2022 12:59 AM - edited ‎11-23-2022 01:00 AM
You can write a reference qualifier on account related contacts variable like below logic:
javascript:"accountFieldName="+current.variables.accountVariableName;
//replace with your variable and field names..
Replace : with :
Hope it helps..
Murthy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2022 01:07 AM
Hi @Rajesh Sheela1 ,
You can try advance reference qualifier on contact variable as below:- Replace with proper variable and field names
Please Mark My Response as Correct/Helpful based on Impact
Regards,
Gunjan Kiratkar
2X ServiceNow MVP
Community Rising Star 2022
Youtube : ServiceNow Guy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2022 01:32 AM
Hi Gunjan,
I tried this and its working but when we click on dropdown value once again it is showing all accounts. but i want to show only those contact which are related to account.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2022 01:14 AM
Hello,
If you are talking about CSM then you can see how it is setup for OOB record producer and then check field 'Contact'
Contact field : instance/item_option_new.do?sys_id=0743c740c74500104c1bf9f91dc26036&sysparm_record_target=item_option_new&sysparm_record_row=3&sysparm_record_rows=10&sysparm_record_list=cat_item%3D644ffeccc70500104c1bf9f91dc260d8%5EORDERBYorder
Reference qualifier :
javascript:var ret='account.customer=true'; if (!gs.nil(current.variables.account)) ret += '^account=' + current.variables.account; ret;
Regards,
Musab