Assessment Instance Questions not showing the questions after Assessment Instance is Created

Shrey hurana
Tera Contributor

I have a requirement where a surveys needs to be triggered to a particular group as soon as the incident is marked as Resolved.

As we can't directly use the group to trigger the survey, so I used a flow designer to trigger the Survey to the group members of the group. The Assessment Instance is getting created as expected, but unfortunately when I impersonate to a user whim the Survey is Assigned, he is not able to see the survey under 'My Assessment and Survey' tab,

Can someone please help me where I am going wrong in implementing this solution.

Flow Designer:

 

Shreyhurana_0-1722580105076.png

Assessment Instance which got created from above flow:

 

Shreyhurana_1-1722580175026.png

No questions are showing in the above screenshot and also after impersonating to 'administrator', I am not able to see the Survey under 'My assessment and Survey' module

2 REPLIES 2

Mark Manders
Mega Patron

For the UI page:

https://www.servicenow.com/community/incident-management-forum/send-survey-to-group-members/td-p/299...

 

For the Flow:

Step 1

Create the asmt_assessment_instance record

Step 2

Do a lookup to the asmt_metric_category table where 'type' is the sys_id of your created survey record.

Step 3

For each item in your lookup

Step 4

do a look up to the asmt_metric table where 'category' is the sys_id of your 'for each'

Step 5

For each on that look up

Step 6

Create the asmt_assessment_instance_question records where fields are:

 

Source table = assessment metric type

Source = sys_id of the metric type from record created in step 1

Category = sys_id of for each record of step 3

Instance = sys_id of the record created in step 1

Metric = sys_id of for each record of step 5

MarkManders_0-1722584431491.png

MarkManders_1-1722584462403.png

 

 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Thank you very much for the detailed solution and explanantion ðŸ˜Š


I tried implementing the flow in my PDI and it is working fine as expected if the survey needs to be trigerred to a particular user but I need to trigger the survey the survey to a the group members of a prticular group. I tired implemnting the flow on the same logic but unfortunately It did not worked. The assessment is getting triggered to the user but the Assesment Questions are not visible to the user. Can you please help me with the same.

Please find below screenshots for the flow I created.

Shreyhurana_2-1722677664381.png

 

Shreyhurana_3-1722677687565.png

 

Shreyhurana_4-1722677702015.png

 

Shreyhurana_5-1722677718332.png

 

Shreyhurana_6-1722677734848.png

 

Shreyhurana_7-1722677749163.png

 

Shreyhurana_8-1722677763083.png

 

Shreyhurana_9-1722677776535.png

 

Shreyhurana_10-1722677787216.png

 

Alos, if any one of the user from the group completes the assesmsent, then the other Assessment Instance assosciated with the current Incident record should be cancelled automaticallyfor the other users.

 

Thank you in advance again for your help and support.