You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

POST works from POSTMAN but not from groovy trigger

Received Response
in Sales 1 comment


We are triggering the PAAS service to post the data from cx system, we are able to post and getting the response from 'Postman' when we try the same from groovy trigger we re receiving the error. Can you please help me to understand if any mistake in the process

Content (required): Attaching the code for reference:

 def Serv = adf.webServices.APIAppointment

 def headers = [:] 

 headers.'Content-Type' = 'application/json' 


 def Detail = [:]

 def Detail1 = [:]

 Detail.Location = "ADMC-WS-JED HAMDANIYAH"

 Detail.CustomerId = "2619"

 Detail.Advisor="ARNDT, William"

 Detail.Name = "test"

 def response = Serv.POST(Detail)

 println("Response:  "+response)

Version (include the version you are using, if applicable):

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!