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.

Sending additional comments and work notes via rest api script

jyoti29208
Giga Expert

Hi All,

 

I need to pass work_notes and additional comments of an incident via rest API.

Could you please help me how it can be done in BR.

 

Regards,

Jyoti

6 REPLIES 6

I'm Sorry SP, i did not see notification of your question (and i think i had meant to include a screenshot in the prior msg), hopefully you resolved your question but if not:

I accomplished this in the Script Include  payload to be used with integrationhub.basically copied the oob payload builder script include so to modify it.  it looks like below, i have many things commented out but of course could use those too. see highlighted part for the comments/worknotes part: 

find_real_file.png

find_real_file.png

Hi

 

Could please help me in this

As I am using Put method and under my BR I added this line with

 

r.setStringParameterNoEscape('work_notes', current.work_notes.getJournalEntry(1));

 

I pass the value like above but it's not working could u please help me.