Retrieve RITM\INC comments via ServiceNow Connector Power Automate - not working

FP123
Kilo Expert

I'm trying to use the Power Automate ServiceNow connector to retrieve the last comments for either an incident or request. Connector is working fine to retrieve task details, it is purely comments that isn't working. 

Example of my List Records step to retrieve the entries from the sys_journal_field for the specific task record (using its sysid).
find_real_file.png
Just returns an empty result:

find_real_file.png

From my perspective, this should just work so not sure what the issue might be. I did have to add in sys_journal_field as a custom value in the Record Type field.

Would love to know if any one else is able to retrieve ticket comments via the connector in Power Automate.

1 ACCEPTED SOLUTION

FP123
Kilo Expert

After a little bit of Googling and much trial and error, figured out a workaround to get the comments. I enabled "Display System references" to have the records retrieval bring back the additional comments for the ticket:

find_real_file.png

Then did some string manipulation to split out into an array. Also filtered any comments created by System. As a note, the separator for comments is \n\n.

find_real_file.png

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

to retrieve latest record did you use orderby descending in your API

Regards
Ankur

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

Thansk Ankur. I was using the Order By - connector to sys_journal_field is simply not returning any records/data at all.

FP123
Kilo Expert

After a little bit of Googling and much trial and error, figured out a workaround to get the comments. I enabled "Display System references" to have the records retrieval bring back the additional comments for the ticket:

find_real_file.png

Then did some string manipulation to split out into an array. Also filtered any comments created by System. As a note, the separator for comments is \n\n.

find_real_file.png