SK SKYVVA Documentation

7. How to use query parameter to get last data changed from SAP Business One?

Learning Objectives:- This unit describes:-

Introduction:

In this tutorial, we will learn How to get the last modified Business partner object in SAP Business one using  Operation GET in  SAP business one Adapter. To get the data from  SAP Business partner in the SAP business one application to Salesforce. we need to have SAP Business Partner Message Type and SAP Business one Adapter. We can process data manually and scheduler to know detail about How to run the outbound interface manually or scheduler please follow this link: #article/129-how-to-run-the-outbound-interface-through-the-manually-or-scheduler

Pre-required:

Step 1: Create Integration: To know detail about Integration, please follow this tutorial. What is Integration, and How to use it? 

Step 2: Create Connection Destination SAP Control Board.

Step 3: Create Metadata SAP by using SAP Import Metadata. [su_box title="Note" box_color="#2a8af0" title_color="#000000"] We need to create Metadata Provider and a Repository. [/su_box] Follow this link to see detail about How to use and create Metadata Provider and Repository.

After that, we will see the message type object Business Partner.

We need to create two new fields in the message type Request for QUERY Parameter. Which are Date and Time.

We also need to create Apex code for get the time. Go to setup and search Apex and click Apex Classes

Step 4:  Create Outbound Interface, Inbound Interface, and linked with Message Type that we generated.

We need to using formular to map the apex code with date and time.

Step 5: Linked Request and Response Interfaces.

Step 6: Create SAP Business One adapter.

• Go to Request Interface and Linked this adapter. Here’s an example.

Step7: Executing by Scheduler To know the what is scheduler and how to using it please follow this tutorail. Go to Sap Control Board, click Scheduler

Summary

Finally, we have learned how to create a record from salesforce to SAP Business One Application using operation POST in SAP Business one Adapter.  In the next section, we will learn how to update Business Partner using Operation PATCH in SAP Business One Adapter.

Open this article in the interactive viewer →