Use OOB Interaction API to create/update/close interaction

Feddy
Kilo Sage

Hi Team , 

We have requirement to use OOB Interaction API to create/update/close interactions.

1. OOB create Interaction API doesn't allow me to create interaction with below details.
find_real_file.png

I believe number will be auto-populated but the created record doesn't have other values
My response body : 
{"channel":"chat",
"subtype":"",
"state":"",
"short_description":"Test Short description",
"opened for":"<sys_id or name>", 
"assignment_group":"<sys_id or name>",
"assigned_to":"<sys_id or name>",
"work_notes":"Test Worknotes"}

None of the values get populated using oob api. is this the expected behavior? if yes, what is the alternate approach import set API or scripted rest API's?

Your inputs are greatly appreciated.

Thanks, 
Fedrick

9 REPLIES 9

I see few issue with data

replace channel with type

asigned_to is misspelled. Use correct spelling (assigned_to)

 

Make sure your input has correct field names. To avoid spelling issues, use Builder to create JSON payload instead of using RAW tab

find_real_file.png

Thank you,
Palani

sorry for the typo error. my test request body is 

{"short_description":"test","channel":"chat"}


the reason behind having channel is 

find_real_file.png


Are you checking OOB Interaction API's? coz I couldnt see those fields in the lists while building body , it is just open text for me

 

find_real_file.png

\

 

 

Thanks .

Hi,

I used Table API and selected Interaction as table name. Not sure about Interaction API. I dont see any documentation for Interaction API

Thank you,

Palani

Thank you,
Palani

Thanks for your input.

https://developer.servicenow.com/print_page.do?release=paris&category=null&identifier=interaction-management-api&module=api

However this link has not much information

Hi Freddy,

Did you manage to find a solution? I am facing the same issue.

many thanks!