Your UX is waiting ...interact, engage, explore in Las Vegas at CloudWorld 2023

Learn more
How to get exact response from REST API using groovy script — Cloud Customer Connect
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

How to get exact response from REST API using groovy script

Received Response
in Sales 1 comment


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.


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,

Howdy, Stranger!

Log In

To view full details, sign in.


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