MFA Icon

MFA for Oracle Community

Starting September 2025, Oracle Community will require Multi-Factor Authentication (MFA) for all member logins. This simple extra step helps protect your account—and the community data—by adding an additional layer of security during sign-in.

Read more about MFA
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
Sales
Get Started with Redwood: Oracle Cloud SCM and Purchasing

How to get exact response from REST API using groovy script

in Sales 1 comment

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,

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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