REST - POST method help

Mohammed Hyder
Tera Contributor

Dear All,

 

I am trying create a POST method so that in click of UI action , All the required details should be sent to 3rd party 

 

Payload : {
"client_reference": "123",
"account_id": "",
"additional_info": "",
"fault_description": "",
"serial_number": "123",
"imei": "",
"make": "",
"po_number": "",
"collection_details": {
"collection_required": true,
"collection_date": "20-12-2023",
"company": "",
"first_name": "AA",
"last_name": "BB",
"email": "AA@theaa.com",
"phone": "1234",
"address_line_1": "btm",
"address_line_2": "123",
"town": "234",
"postcode": "4333",
"special_instructions": "",
"store_number": ""
},
"delivery_details": {
"company": "",
"first_name": "",
"last_name": "",
"email": "",
"phone": "",
"address_line_1": "",
"address_line_2": "",
"town": "",
"postcode": "",
"special_instructions": "",
"store_number": ""
}
}

7 REPLIES 7

Robert H
Mega Sage

Hello @Mohammed Hyder  ,

 

There are a lot of steps involved in setting this up. Please review this end to end guide.

 

Regards,

Robert

Ankur Bawiskar
Tera Patron
Tera Patron

@Mohammed Hyder  

so what did you start with and where are you stuck?

if your UI action is server side then you can use REST Message in that

sharing few links which can help you

REST API from UI Action 

Scripting outbound REST

REST Message v2

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

Issue is I am not able to pass the value from 

Collection details block

@Mohammed Hyder  

please share your script and what debugging did you perform?

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