on 07-12-2023 5:37 PM
I am trying to access the Local/Global variables in my CPI CF Tenant using the APIs available in the Business Accelerator Hub, but I am not able to read the value of the variables.
I am accessing /Variables(VariableName='{VariableName}',IntegrationFlow='{IntegrationFlowId}') this end point via my IFlow/SOAP UI, but I am receiving the response in "application/octetstream" content Type with binary data as the response, and unable to parse it as a readable value. In the Try Out Url in Business Accelerator Hub, it is displayed as if the return type would be application/json with the value, however I am not getting it.
I also see that I am getting an attachment when I look at the "Content-disposition" http response header, which contains a "zip" file with the variable name as the Filename, but I am unable to parse this and read it as well.
I request the community's support in getting the value easily. I have also raised an incident with SAP and waiting for response.
P.S: I know about accessing the variables in Content Modifier step but I am not interested in that solution.The Other end points which gives the list of variables in the tenant is working fine for me and hence accessing the APIs and credentials are not an issue.
A SOAPUI or POSTMAN response screenshot would help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Vijay,
The XML response I got in SOAP UI is
<data contentType="application/octet-stream" contentLength="298">UEsDBBQACAgIAHqD7VYAAAAAAAAAAAAAAAAMAAAAaGVhZGVycy5wcm9wLczbCoIwAIDhe59i0LXgZmkJXoh56gDL7OQ/LD86W2pzgj+fRPf/9y+SegS7kQOoA2hYyLRWCFwSFyAN6YrvxZk/osyb8pq0FT+JpEPIBtkJlhNuzxFSNVNFUDk7ODv23O2EoJxI1rVRYTvBIQ1uZSI/rT/T06uF9xJPeT/xB/4JLGhFWyrmbzFr9ifpdWPmzVDvm/VbfaZMfowwjJfKF1BLBwgOTQyLoAAAAK4AAABQSwECFAAUAAgICAB6g+1WDk0Mi6AAAACuAAAADAAAAAAAAAAAAAAAAAAAAAAAaGVhZGVycy5wcm9wUEsFBgAAAAABAAEAOgAAANoAAAAAAA==</data>
Raw data version of the same along with the response Headers. As you can see, the "content-disposition" contains the name of the variable as a zip attachment.
Hi Vijay,
Yes I tried with the Accept parameter too, by setting to the default value it automatically sets which is gzip, deflate and also to "application/json" and it still doesn't work.
Postman web app had issues with Oauth authentication with the CPI tenant and I heard its a common issue. I am trying to get the desktop version installed soon and I shall update once I have it and tested.
User | Count |
---|---|
81 | |
11 | |
10 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.