Trigger ID is not populating in assesment instance table

nandini29
Tera Contributor

Hi all,

I created a survey and a trigger condition on the Incident table, but I’m not able to see the trigger ID in the Assessment Instance table. However, when I created the same setup for the sc_task table, the trigger appeared correctly.

nandini29_0-1762851587122.jpegnandini29_1-1762851597855.jpeg

 

nandini29_2-1762851622655.jpeg


Can someone please look into this and help

4 REPLIES 4

G Ponsekar
Giga Guru

Hi @nandini29 ,

 

Check for Duplicate or Conflicting Email Notifications: If there's an existing email notification on the Incident table that fires on the same condition (e.g., when the state changes to Closed), it might interfere with the survey trigger's built-in email logic, causing the instance to be created without the Trigger ID.

  • Solution: Disable the standard email notification on the Incident table and create a new notification on the asmt_assessment_instance table for 'insert' operations. This ensures the survey is sent only after the assessment instance with the trigger ID has been correctly created.

And Also for testing purpose, can you set the probability to 100% and uncheck "Trigger randomly" and check

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

 

Thanks, GP

 

 

 

Ankur Bawiskar
Tera Patron
Tera Patron

@nandini29 

what's the different in the setup?

share both the screenshots

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Laveena-Agarwal
Kilo Sage

Hi @nandini29 

I will suggest including only one condition like status is closed and see if it is triggering or not.

Ankur Bawiskar
Tera Patron
Tera Patron

@nandini29 

when survey is not created via trigger condition and is created on-demand example using script etc then Task and Trigger ID comes as empty in that Assessment Instance table

this is OOTB behavior, see this KB

'Task' and 'Trigger ID' fields are empty on the survey instance 

Please check the Survey which has INC populated in Trigger ID and Task must be from Trigger Condition and not via script

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader