Skip to Content
Technical Articles
Author's profile photo ASUTOSH MAHARANA

Sharepoint Custom Adapter for SAP CPI

Introduction

SAP Cloud Integration has capabilities to add custom adapters using SAP ADK framework. I am going to show you a Sharepoint adapter for sap CPI.

As per the response from my previous article on Sharepoint, by using SAP HTTP receiver adapter we are facing I/O error from Sharepoint APIs for binary file uploads. So this adapter will be able to fix those issues.

Main

I have developed one custom adapter using SAP ADK. You can download the .esa file from my GitHub repo.

We have created a simple iFlow with below configurations.

Configuration

Upload%20Adapter%20file%20and%20Deploy

Upload Adapter file and Deploy

iFlow%20Configuration

iFlow Configuration

Deploy%20Security%20Material

Deploy Security Material

Testing

Postman%20Configuration

Postman Configuration

Binary%20File%20successfully%20uploaded

Binary File successfully uploaded

Conclusion

This adapter should not be used in any production tenant but someone should go through the implementation from my GitHub Repo to understand how we can develop a new custom adapter easily using SAP provided maven archetype.

 

 

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Nagendra Kumar Tiwari
      Nagendra Kumar Tiwari

      Nice Blog Ashutosh.

      Keep blogging.

      Author's profile photo Morten Wittrock
      Morten Wittrock

      Slightly off topic, but CI is really not a good abbreviation for Cloud Integration. CI is and will continue to be Continuous Integration. I still use the CPI abbreviation, even though the product name has changed. Alternatively I go with Cloud Integration, which is somewhat longer but unambiguous at least.

      Regards,

      Morten

      Author's profile photo ASUTOSH MAHARANA
      ASUTOSH MAHARANA
      Blog Post Author

      Thanks for pointing this out. Updated the same 🙂

      Author's profile photo Daniel Graversen
      Daniel Graversen

      I agree Morten. Cloud Integration/CPI is a better form.

      Author's profile photo Caroline Oakes
      Caroline Oakes

      Enjoyed this blog. Good work.

      Author's profile photo R B
      R B

      Hi Asutosh,

      nice post. What are the other fields passed as xml payload in postman. cant see the tags. Can you specify which are other fields passed.

      The values in adapter are hardcoded. Are they not taken from payload

      Author's profile photo ASUTOSH MAHARANA
      ASUTOSH MAHARANA
      Blog Post Author

      Dear,

       

      There are no other headers were passed from postman, if you want you can use different adapters as well to pick the files like SFTP or AS2 as well.

      And for the values which are hardcoded as of now are meant to be hardcoded like domain name and filepath. You can try using simple expression as well. for using camel simple expression try downloading the .esa file again as i have committed the changes now.

       

      Thanks,

      Asutosh Maharana