Skip to Content
Technical Articles

SAP CPI : Retrieve persisted messages through iFlow by consuming API(CF)

I’d explained about “How to retrieve persisted messages through iFlow by consuming API” for Neo in my previous blog which you can find  here

I thought of covering the same for Cloud Foundry also. Here we go……..

The way which we use to call OData API in Neo and CF is a little different with regards to authentication.

Let us divide the task into 2 sub tasks

  • Authentication
  • Design

Authentication:

We need to set up OAuth Inbound Authentication with Client Credentials Grant for API Clients

Please refer  SAP Help Documents Setting Up OAuth Inbound Authentication with Client Credentials Grant for API Clients  and Task and Permissions

Once the Service Instance and Key is created, let us deploy the same in our Security material for future need(we will have to consume OData API with this OAuth)

Design

I would take the same 2 iFlows as explained in my previous blog except below mentioned small modifications in the 2nd iFlow

  • Content Modifier[MessageID]: No need to create a property for Authorization(We have OAuth ?)
  • Request-Reply: Access OData API with OAuth created in Authentication step above


    Output : Persist- BeforeMapping


    Persist-AfterMapping

    Likewise, now you can explore all the OData APIs in Cloud Foundry as well.

    Was it helpful? Please do let me know your thoughts.

     

    !!!!!HaPpY LeArNiNg!!!!!

     

    Sathya

Be the first to leave a comment
You must be Logged on to comment or reply to a post.