Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

9 REPLIES 9

G Ponsekar
Tera 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

For service request

nandini29_0-1762949397067.jpeg


For Incident

nandini29_1-1762949421597.jpeg

@Ankur Bawiskar
I oberserved that for sc_task also I am getting wrong trigger id(wrong task number) usually it should be recent closed task number, but it is not populating correct task number

@nandini29 

sorry images are not clear.

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