Register today for Oracle CloudWorld. October 17th - 20th, Las Vegas

Register now

Hillel Cooperman, Senior VP of User Experience Design, has a message for you on Oracle CloudWorld

Watch now
How to pass parameters in a GET call using Groovy — 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 pass parameters in a GET call using Groovy

Received Response
31
Views
1
Comments
in Sales 1 comment

Summary:

Hi Community,

I have registered a web service and now using that web service I want to pass additional parameters in the endpoint URL.

I am using below code but it is returning empty, any help will be really appreciated

Thank You!

Code Snippet (add any code snippets that support your topic, if applicable):

Expected URL:{{fabricURL}}/api/accountManagement/v4/partyAccount?contact.contactMedium.characteristic.emailAddress={{individualEmailId}}

Registered Webservice:

Paramtere That i want to Pass in Groovy Script: ?contact.contactMedium.characteristic.emailAddress={{individualEmailId}}


def connAccount = adf.webServices.GetPartyAccount

def ahttpHeaders = ['Content-Type':'application/json','Target-System':'Oracle Buying']

connAccount.requestHTTPHeaders=ahttpHeaders

def queryParam = ['contact.contactMedium.characteristic.emailAddress':'[email protected]']

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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