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

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':'johntest62222@stark.com']

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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