Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
DeepaliG
Explorer
In the case of SuccessFactors Integration via SAP Cloud Platform Integration (CPI), we encounter scenarios where we need to retrieve data from SuccessFactors through polling based on certain events (Hire, Rehire, Terminate, Manager Change etc)

In this blog I will try to explain how we can get data in real-time for the events which are pre-defined in Intelligent Services Center.

Why Event Driven Integration?


Conventionally, we schedule SuccessFactors integrations to run at a particular frequency and poll the data based on Last Successful run date (LSRD). Sometimes, the integration tries to poll even when there have been no changes made in SuccessFactors since the last integration run.
Making the integration event driven not only omits unnecessary polling but also gains the advantage of real-time data availability. This is made possible as events within Intelligent Services Center can be promptly triggered as soon as they transpire.

Pre-requisites for trying this integration scenario:



  1.  CPI Access

  2. In SuccessFactors, access to Intelligent Services Center, Integration Center, Configure Business Rules, Manage Business Configuration and to Add new Employee (since I will demonstrate Hire event scenario)


How to do the Set-Up?



  1. Integration Flow in CPI

    1. Produce an integration flow within CPI as instructed which will receive the events from Intelligent Services Center and the endpoint created by integration will be placed in SuccessFactors.

    2. Add any address in HTTPS adapter (for example : /DemoISC).

    3. Provide Expression ${in.body} in Content Modifier to read the payload in the trace.

    4. Deploy the artifact and copy the end point (as highlighted)



  2. SuccessFactors Set up

    1. Go to “Configure Business Rules” and create rule (if not already there) for Hire events as shown below. This event triggers New Hire Event in Intelligent services Center.

    2. Go to “Manage Business Configuration”.

      1. From the left pane click on “jobInfo”.

      2. On the right, click on “Take action” and choose “Make Correction”

      3. Scroll down to Trigger Rules on the same screen and add the rule created in Step 1 as shown below. (Please note that Event Type must be “onPostSave”)



    3. Getting the predefined events using Intelligent Services Center

      1. Go to “Intelligent Services Center (ISC)”

      2. From the list of events, choose Employee Hire

      3. From the right pane, click “Event Connector” under custom activities.

      4. From the list of Connectors, Select “New Event Connector”

      5. Provide CPI end Point copied in the Integration Flow Set up step 4 along with Username and Password of the CPI user.After saving, Event Connector will be added.

      6. Go to “Add new Employee” in SuccessFactors and fill the new-hire details. (Before submitting the details, go to the integration and set your integration on trace mode).

      7. After you submit the new hire record, an event must reach CPI as shown below. Hence, this enables triggering of an event whenever a new hire is added to SuccessFactors.



    4. Creating custom events using “Integration Center”

      1. Go-to “Integration Center” and select “My Integrations”

      2. Choose Create from right and hence click on More Integration Types as shown below.

      3. Configure Integration Type as shown below

      4. In Search bar, Type “Employee Hire” and select Employee Hire from the drop down. Click select.

      5. Provide a meaningful Integration name and description and go-to next.

      6. On configure Fields screen, you can select fields of your choice to define the event.

        1. Click on Root, and add child element

        2. Name it userId from XML Element Name and then associate it with user id as shown.

          When you click on Change Association to “User ID”, you can see the userId being linked to the userId of Job Information.

        3. Similarly, other fields can be added as shown and then click next



      7. Add any filter if needed, otherwise you can skip the step and go to next

      8. In Destination Settings, provide any Connection name, CPI endpoint in REST API URL, and user credentials.
        Note: If Authentication Type is chosen as OAuth, either pre-defined configuration needs to be chosen or you need to create a new OAuth Configuration in “Manage OAuth Configurations”.


      9. Go to next and save the integration created. Click on Run now, you will be able to see a dummy data event in CPI.




        We can fetch more information based on the event received from Intelligent Services Center.

         






Conclusion:


This is how Intelligent Services Center in SuccessFactors can be used to send Events to CPI in real-time. The Process can be decoupled by sending the events to Event Mesh’s Topics/Queues.

Hope this blog helps! 😊 

Best Regards,

Deepali
Consultant, Capgemini India

 
5 Comments
Labels in this area