In this blog article, we will walk you through the process of fetching PDF from SAP using ODATA URL by giving some input parameters.
Here we are using HTTP Adapter instead of ODATA adapter.
For fetching PDFs from SAP, the HTTP adapter is preferred due to better binary data handling, performance, authentication support, and flexibility, while the OData adapter is better suited for structured data exchange.
To consume the OData URL, add a Request-Reply step in your integration flow and connect it with the receiver using the HTTP Adapter.
Now, configure the HTTP Adapter with the necessary details:
1.Endpoint: Enter the URL in Address.
URL Breakdown: -
The following OData URL is used to fetch billing proforma details from the SAP system:
Components of the URL
2.Select the proxy type:
3.Select the Method:
4.Authentication:
Leave the remaining fields as empty as they are not mandatory.
5.Now save and deploy the I-Flow
Testing Using Postman
Trigger the endpoint from Postman below are the screenshot of the response.
You can convert the retrieved PDF to a Base64 string, use the Base64 Converter pallets in CPI
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 27 | |
| 24 | |
| 20 | |
| 19 | |
| 14 | |
| 13 | |
| 13 | |
| 12 | |
| 12 | |
| 11 |