- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 04:35 AM
Hi Team,
1. I have created one custom Survey, for below use case,
* When incident is moves to closed, survey emails should triggered to caller
2. Created one custom notification on Incident table like below
3. In the tab what it will contain i added one email script
4. email script written like below,
and also in the email logs , when i checked with preview email? same above error
How to resolve this issue?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 07:28 AM
Hello @Abhilasha G T
The function you are using expects sys_id of the survey instance, screenshot of script for reference:
You will need to create notification on assessment instance table with condition as metric type as your Survey
OR
You can query assessment instance table to get sys_id of the assessment instance created once the incident is closed (assuming you have configured trigger condition of Survey when incident is closed) and pass that instance record sys_id to the function.
Thank you,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 04:40 AM
Hello @Abhilasha G T
This is expected as the survey widget checks if the survey is currently assigned to logged in user, irrespective of the roles. You can try impersonating the user to whom the survey is assigned and test.
Thank you,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 05:35 AM
Hi Ali,
I impersonating with the user with survey assigned , he can see the survey in the
My Assessments and Surveys
But he is not able to see the survey in the email logs> preview email, see the screenshot below,
i need to fix this issue ? any solutions
Regards,
Abhilasha G T

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 07:28 AM
Hello @Abhilasha G T
The function you are using expects sys_id of the survey instance, screenshot of script for reference:
You will need to create notification on assessment instance table with condition as metric type as your Survey
OR
You can query assessment instance table to get sys_id of the assessment instance created once the incident is closed (assuming you have configured trigger condition of Survey when incident is closed) and pass that instance record sys_id to the function.
Thank you,
Ali
Thank you,
Ali