How to show survey results with comments when referencing the asmt_metric_results table

AbbasP
Tera Guru

Hello all,

I currently have a customer satisfaction report which points the Metric results table. I have most of the fields I require, however, how do I get the comments field added into this report?

The below columns is what I have to show me the Task number, Name, etc but I just need to add the comments field to make this complete:

 

AbbasP_0-1747806211162.png

 

1 ACCEPTED SOLUTION

@AbbasP 

there is this OOTB task assessment detail database view which covers something similar and joins the related assessment tables so that you can see the survey question responses

you can try to see that and replicate for your task extended table

AnkurBawiskar_0-1747884441909.png

When you do Try It it shows like this

AnkurBawiskar_1-1747884510079.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@AbbasP 

is that a database view on which you created a report?

share that database view config

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

SumanthDosapati
Mega Sage
Mega Sage

@AbbasP 

Which comments do you mean?

If Feedback comments, then you need to check on asmt_assessment_instance_question table.

 

Regards,
Sumanth

AbbasP
Tera Guru

Thanks for the prompt responses. @SumanthDosapati , I require the string value from the question table to capture the responses as well as the string value from the results table (which has a different result).

 

@Ankur Bawiskar , it appears a database view is the correct approach here, however, I am quiet new to using this process. I have attempted to create a view as shown below, but I believe I may need some assistance in joining the 2 tables so I can see the results in my report. Can you please confirm if I am missing any tables and what the join values would be based on the below? I understand the common factor in both these tables is the Instance field so perhaps I need to reference this?:

 

AbbasP_0-1747874057716.png

 

 

@AbbasP 

there is this OOTB task assessment detail database view which covers something similar and joins the related assessment tables so that you can see the survey question responses

you can try to see that and replicate for your task extended table

AnkurBawiskar_0-1747884441909.png

When you do Try It it shows like this

AnkurBawiskar_1-1747884510079.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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