Automatically Create Customer Account from incoming Payload

cnharris1
Kilo Sage

Hello everyone, 

My organization is working in the Order Management for Telecom, Media & Tech application. Currently, we're using the OOTB functionality where customer accounts need to be set up in ServiceNow before they can be sent via payload. If the account is not set up in ServiceNow, then we receive this error message: 

{
   "message": "Invalid payload: Customer Account does not exist",
   "datapath": "/relatedParty/"
}


This brings me to my question. I have a requirement to automatically create customer accounts from the incoming payload if the customer account does not already exist in ServiceNow.

 

Has anyone done this before or have any suggestions or guidance on this?

Any help would be greatly appreciated!

Best regards,

cnharris1

1 ACCEPTED SOLUTION

How about updating your integration steps/process
First use table API to check if the Account exists, and if not create it.
then send your payload.

View solution in original post

5 REPLIES 5

Thanks again Tony! It took me a while to figure it out, but I found out where I needed to change my code and was able to create the account if it didn't exist.