POST works from POSTMAN but not from groovy trigger
Summary:
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'
Serv.requestHTTPHeaders=headers
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):