JMJ CLOUD
  • Home
  • Projects
  • Blog
  • About Us
  • Contact Us

Our Blog

APEX 20.2 - First Look at REST Data Source Synchronization

10/11/2020

0 Comments

 

Introduction

The Pre-Production Release of APEX 20.2 is now available on apex.oracle.com!   There are lots of new and useful features that we can't wait to start using.   In this article, we'll have a look at the new REST Data Source Synchronization feature will be super handy when using APEX to extend ERP Cloud.   We gave this a runout on apex.oracle.com, using it to pull down ERP Cloud Organizations into an APEX table on a set schedule.

Step 1 - Configure the REST Data Source

We configured the REST Data Source as below, using APEX Web Credentials to connect to the Vision Demo ZRNS environment, configuring the organizations HCM rest service to return the following fields for all active departments:  OrganizationId, Name and Active .
Picture
Query String variables are used to configure the selection criteria and data returned.
Picture
Before attempting synchronization, we test the web service call to make sure it is functioning correctly.
Picture
We can check this for accuracy against the source data in ERP Cloud.   

Note, Vision is shown  below with the Redwood theme; we're looking forward to trying out the new APEX 20.2 Redwood Light Theme for our ERP Cloud Integrations.
Picture
An important step is to identify the Primary Key of the returned data; this is used if you're Merging the data every time it is synchronized.
Picture

Step 2 - Configure Synchronization

We clicked on the new Manage Synchronization link to start the configuration process.
Picture
Here we choose a target table.   
Picture
If none exists, APEX will create a new table for you with columns matching your REST Data Source.   

Note, If your REST Data Source changes at a later time, for example if columns are added or renamed,  APEX can generate and apply the DDL required to bring the table in line.
Picture
In the next step, we have to choose the Synchronization Type:
​
  • Append - rows are added to the end of the table.
  • Merge - rows are merged using the primary key defined earlier.
  • Replace - the table is truncated (or deleted) before rows are inserted.

The Synchronization Schedule is expressed using same syntax as DBMS_SCHEDULER, so tables can be synchronized every 15 mins, 2 hours, day etc.  
Picture
All done - now we can save the Schedule and we're told when this will run.   

​We can also run it On Demand using the Save and Run button.
Picture
Looking at the new APEX_REST_SOURCE_SYNC package, we should  also be able to start synchronization programmatically using a PL/SQL procedure call.
Picture

3 - Synchronization Results

Once Synchronization has run, the log entries give us rowcounts, message sizes, and execution times.
Picture
Picture
Data is now available in our custom table.   We used the APEX 20.2 Declarative Cards layout to show the data.
Picture
And just for fun, this is what it looks like with the Redwood theme:
Picture
We can also use the new APEX 20.2 Excel downloads to get our newly synchronized data:
Picture
Behind the scenes, the JMJ_ERP_CLOUD_DEPARTMENTS table contains the columns we requested, along with a couple that APEX uses to keep track of synchronization.
Picture

Conclusion

This was our first look at this new feature in APEX 20.2 and in about 15 minutes we were able to create a new workspace, ERP Cloud data source, and synchronize data into a custom table.   

​We didn't have to write a single line of code to call web services, map returned data into tables, or record web service calls and responses.  

This is fantastic functionality, and we look forward it using it in our work using APEX to extend and integrate with ERP Cloud.    We hope ERP Cloud follows the industry and continues to migrate old SOAP services to REST.  This will make integrations like this much simpler and help customers gain the maximum benefit from their ERP Cloud Investment.

This is yet another example of expectations being exceeded by the APEX Development Team!   Thanks to all those who worked hard behind the scenes to make this happen.
0 Comments

Your comment will be posted after it is approved.


Leave a Reply.

    RSS Feed

    Popular Posts

    - APEX Dog Food
    - Cloud ERP & APEX Mashup
    - Modernizing EBS with APEX
    - Easy APEX_WEB_SERVICE
    - Running APEX in RDS
    - ORDS What & Why?

    Categories

    All
    APEX
    AWS
    Fusion Cloud ERP
    INTEGRATION
    MS GRAPH
    OCI
    ORDS
    PaaS
    RAD
    REST
    SOAP

    Archives

    October 2021
    February 2021
    January 2021
    October 2020
    September 2020
    June 2020
    May 2020
    April 2020
    February 2020
    January 2020
    October 2019
    September 2019
    August 2019
    July 2019
    June 2019
    April 2019
    March 2019
    February 2019
    January 2019
    December 2018
    November 2018
    October 2018
    September 2018
    August 2018
    July 2018
    June 2018
    May 2018
    April 2018
    March 2018
    February 2018
    January 2018
    September 2017
    August 2017
    July 2017
    June 2017
    February 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016

Company

About
Contact
Blog
  • Home
  • Projects
  • Blog
  • About Us
  • Contact Us