- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 04:34 AM - edited 08-12-2024 05:12 AM
Hi all,
In virtual agent, I have a topic where users are asked to create a contact. They are asked all the question and from their answers, a new contact should be created. To achieve this, I have used the record action utility and added the fields to show the input variable values.
At the moment, however, I am encountering an error, it's creating the contact, but on the new contact record, the account field is not populated, only the other ones.
Any ideas?
This is my script:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 08:52 PM
@Community Alums
Yes! You have used GlideRecordSecure which will ensure that the ACLs are enforced to prevent unauthorized data access. Refer https://www.servicenow.com/community/developer-blog/gliderecordsecure-gliderecord-vs-gliderecordsecure-when-to-use/ba-p/2539299
You can probably give this a try with GlideRecord and see if that works.
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 05:16 AM
Hi @Community Alums
I could see that you are assigning the sys_id to vaVars.account variable though the variable you have mapped in the screenshot is vaVars.account_number.
Can you please try assigning the sys_id to vaVars.account_number instead of vaVars.account and see if it works ?
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 06:38 AM
Hi @Amit Verma I tried that, but still didn't work
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 07:11 AM
@Amit Verma Could it be the fact that this is requested from anauthorized users?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2024 08:52 PM
@Community Alums
Yes! You have used GlideRecordSecure which will ensure that the ACLs are enforced to prevent unauthorized data access. Refer https://www.servicenow.com/community/developer-blog/gliderecordsecure-gliderecord-vs-gliderecordsecure-when-to-use/ba-p/2539299
You can probably give this a try with GlideRecord and see if that works.
Please mark this response as correct and helpful if it assisted you with your question.