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

Access REST through groovy

edited Sep 3, 2019 9:19AM in Sales 2 comments

Summary

Access REST through groovy

Content

Hi  All,

 

I am looking to call the REST from groovy.

Here is the API and scenario

I am using eligibility rule from products with product group and item id to get the country details. I am looking to get the country details using this call. Can you please suggest how I can access this using groovy.


https://<<pod>>.oraclecloud.com/crmRestApi/resources/11.13.18.05/setupSalesCatalogs/<PGID>/child/ProductGroupProductSetup/<PDItemsID>/child/EligibilityRules 

 

Response would be similar to :

{
   "items" : [
      {
         "EligibilityRuleId" : xxxxxxxxxxeid,
         "ProdGroupId" : xxxxxxxxxxpgId,
         "InventoryItemId" : xxxxxxxxxxiiid,
         "InvOrgId" : xxxxxxxxxxorgid,
         "RuleType" : "AVAILABLE",
         "GeographyId" : 300000000361748,
         "StartDate" : null,
         "EndDate" : null,
         "CountryName" : "Saudi Arabia",

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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