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.

How can I create Work order task Survey which can generate multiple incidents/emails?

Chaz_
Tera Guru

Hi,

 

Within FSM, engineers complete a questionnaire at the end of a job. The questionnaire checks certain things, but then allows the engineer to report a fault and the fault type is dropdown listing 16 or so different issues. The fault type will either generate an incident or send an email to a team to investigate as soon as the questionnaire has been submitted.

 

We have a requirement to allow the engineer to submit multiple faults within the questionnaire. What is the best way of achieving this? If there are multiple ways, it would be good to hear all the options available.

 

We have explore having a question at the end, 'Would you like to report another fault?' and then reload the questionnaire. Not sure if this is possible, as then a new survey is generated.

4 REPLIES 4

Hemanth M1
Giga Sage
Giga Sage

Hi @Chaz_ ,

 

Why not use a "Multi Select" type question to list all the different types of issues in the questionnaire? This way, engineers can select more than one type. Once the questionnaire is complete, you can read all the selected values and create the corresponding number of incidents or send emails

 

Example:

HemanthM1_0-1763473583524.png

 

Hope this helps if so,

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Chaz_
Tera Guru

Thanks Hemanth. I forgot to mention that each incident/email triggered needs its own attachment/picture. So, we could raise 2 incidents, both with different images attached.

Yes, Since the number of Issue list are static #16, you can add attachment question and add depends on logic to show when corresponding Issues are selected.

For example Show Attachment #1#Question when #1 Issue selected and so on...

As below

 

Question field type is Attachment (you may have to add 16 Attachment Questions)

HemanthM1_0-1763474935258.png

Hide/Show dependent logic for each issue type selection

HemanthM1_1-1763475066541.png

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

Chaz_
Tera Guru

We did consider this, and its a possibility. I'm thinking of long term maintenance in case new options are added we would need to add an extra attachment field each time. Is there any other field type we could use? Or is there an alternative to make the coding more efficient?