Access REST APIs in Oracle Fusion Using Cloud Groovy
The article gives the sample scripts with the use of Oracle Fusion Cloud REST APIs in Groovy. it includes all the crud operations and some advanced methods to access the REST APIs. Register REST API in Webservices under the application composer tool. Refer below article to register the REST API. Always prefer not to use the web services, instead consider using Groovy functions for CRUD operations as a web service call is more expensive than a Groovy call in terms of performance. Test the web service thoroughly in POSTMAN/any other client with samples and then use it in Groovy. Use try-catch when calling REST calls to handle errors. GET Operation: Simple GET Call 1: To get or Read a specific record use the below code. we don't need to pass content type etc. URL to Register in Webservices: https://abcd-dev1.fa.ap2.oraclecloud.com:443/crmRestApi/resources/latest/opportunities/##OptyNumber## def OptyNumber = OptyNumber def x = adf.webServices.GET_Opportunity.GET(OptyNumber)...