Contact Type not getting set through portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9 hours ago
Requirement is if a case is created through portal the contact type should be set as portal, if created through email the type should be set as Email.
For Email it is working fine, we are setting through Email 2 case flow
But through portal it is set as None, None is default on case form
I am setting through record producer but the code is not reflecting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
code from record producer should work
share your script and config screenshots
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
8 hours ago
Hi @gazalagrawa
Open your Record Producer in ServiceNow and
navigate to the Script section.
Add the following line at the top of your producer script to target the contact type field
current.contact_type = 'portal';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
Hi @gazalagrawa
@please share your code from the record producer. By doing this, it will much easier to help you.
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
