Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Trigger Assessment using Flow Designer

Gokul Nath
Kilo Sage

Hi all,

I have a requirement on triggering an assessment when a demand is being created using flow designer.
I was able to trigger an assessment record. However, the record is not being linked in the Assessment Instance related tab due to empty trigger ID.

I tried using the demand record in the flow to set the trigger ID. However, it stays to be empty. Please provide your inputs on this.
Please find the screenshots 

Gokul24_0-1691862969491.png

 

Gokul24_1-1691863020163.png

Any suggesstions would be helpful. Thanks in Advance.



1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron

Hi

the field "Trigger ID" is NOT a reference field but a so-called "Document ID" field:

 

MaikSkoddow_0-1691899561776.png

 

Therefore you have to:

  1. Dot-walk to the "Sys ID" field of the Demand record and fill this into "Document ID" field in the Update Record action.
  2. Manually fill the value "dmn_demand" into the field "Trigger table" 

Maik

View solution in original post

10 REPLIES 10

Hi @mansi17 , 

Want to know if you were able to resolve the issue, because even for me assessment instance question are not getting generated.

WaNN
Tera Contributor

@SumithraM Same here ,  Any solution for this ?

SungheeL
Tera Contributor

Same here 

assessment instance question are not getting generated.
anybody got answer?

anandvk222
Tera Contributor

Any updates on why questions are not getting generated?

dkliffen85
Tera Contributor

I did the same and had the same issues. Instance created, but questions are not generated. Extend the flow with the following:

dkliffen85_0-1758024477257.png

 

  1. Look up records in table [asmt_metric]. Condition is Type is 1 - Create Record > Assessment Instance Record > Metric Type
    dkliffen85_1-1758024572750.png
  2. Add a flow logic For Each Item In:
    dkliffen85_2-1758024627260.png
  3. For each item create a new record:
    1. Table = Assessment instance question [asmt_assessment_instance_question]
    2. Fields:
      1. Source =  1 - Create Record > Assessment Instance Record > Metric Type > SyS ID
      2. Category = 3 - For Each > Assessment Metric Record > Category
      3. Source Table = Assessment Metric Type [asmt_metric_type]
      4. Domain = global
      5. Instance = 1 - Create Record > Assessment Instance Record
      6. Metric = 3 - For Each > Assessment Metric Recorddkliffen85_3-1758024884862.png

This worked for me. Let me know if this worked for you.