How to get exact response from REST API using groovy script
Hi,
We are calling external REST Api from Oracle Sales cloud to post data into external system using groovy script.
But not getting the exact response body into the response variable.
Code:
def restEndpoint = adf.webServices.Customer_Master
def result
try {
def POST_param =
[
OrganizationName :OrganizationName,
OrganizationDEO_CompanyCountry_c :CompanyCountryList_c,
OrganizationDEO_PaymentContactName_c :PaymentContactName_c,
DUNSNumber :DUNSNumberC,
OrganizationDEO_TaxRegistrationCountry_c :TaxRegistrationCountry_c,
PostalCode :PrimaryAddressPostalCode,
OrganizationDEO_PhoneNumber_c :PhoneNumber_c,
CurrencyCode :CurrencyCode,
OrganizationDEO_EmailforInvoice_c :EmailforInvoice_c,
OrganizationDEO_PaymentContactPhoneNumber_c :PaymentContactPhoneNumber_c,
OrganizationDEO_PartnerOrganizationMember_c :PartnerOrganizationMember_c,
OrganizationDEO_CMR_c :CMR_c,
OrganizationDEO_BillingCommunication_c :BillingCommunication_c,
City :PrimaryAddressCity,
AddressLine2 :PrimaryAddressLine2,