cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

REST API iFlows not shown using IntegrationPackages('{package id}')/IntegrationDesigntimeArtifacts

helmut_skolaut3
Contributor
0 Likes
1,697

Hi together

i want to get all my iflows for some quality check and reporting purposes and i am using first the API https://{tenant}.hana.ondemand.com:443/api/v1/IntegrationPackages to get all packages and then i am reading in a loop package by package using the API https://{tenant}hana.ondemand.com/api/v1/IntegrationPackages('{package id}')/IntegrationDesigntimeArtifacts

This works perfect for all iflows of type "Integration Flow". Unfortunately i have not found any API to get me a list of iflows of type "REST API", here i am getting only this result:

Usually between line 9 and 10 you get for each iflow that is in that package then an XML entry called "entry" containing the metadata and access URLs to download it.

I can download the full package via the API https://{tenant}.hana.ondemand.com/api/v1/IntegrationPackages('{package id}')/$value and get a Zip that i can extract - looks like this:

After renaming the first 3 files to suffix ".zip" i can also unpack those, too and get the iflow here:

But i am wondering if there is maybe a smarter way to get those files - maybe it's also a bug in the API for IntegrationDesigntimeArtifacts?

Thanks for anybody who can help here

BR Helmut

Accepted Solutions (1)

Accepted Solutions (1)

helmut_skolaut3
Contributor
0 Likes

I got a feedback from SAP - the described API is only covering iFlow, ValueMappings and ODATA APIs, but not REST APIs.

the relevant documentation is found here:

https://help.sap.com/docs/integration-suite/sap-integration-suite/integration-content

Answers (1)

Answers (1)

MortenWittrock
SAP Mentor
SAP Mentor
0 Likes

Hi Helmut

That IntegrationPackages('MyPackage')/IntegrationDesigntimeArtifacts API call returns iflow artifacts, specifically. So even though REST API artifacts are actually iflows, it's a different artifact type, that isn't supported by the API yet. I'm sure it will be at some point.

Regards,

Morten

helmut_skolaut3
Contributor
0 Likes

Thanks 7a519509aed84a2c9e6f627841825b5a - i was thinking about this already, however i was wondering if there is another API I should use instead? Or would be the only way to fetch the REST API-iflows using the flow mentioned in the bottom of my question (Get all Artifacts as Zip, and fetch the iflows from there?)

MortenWittrock
SAP Mentor
SAP Mentor
0 Likes

Hi helmut.skolaut3

I don't think there is an API yet for it, so for now, you probably need to go with the workaround you discovered, even though it is a bit more cumbersome.

Regards,

Morten

helmut_skolaut3
Contributor
0 Likes

Thanks for your feedback. I have opened an incident at SAP in parallel - i would still say it's a bug and not an intended behavior. The Service called "IntegrationDesignArtifacts" and not "IntegrationFlow" - for me an REST API and a ODATA API is also an Integration Design Artifact. Let's see, when SAP Support is responding, as usual it takes days until someone is able to respond.

MortenWittrock
SAP Mentor
SAP Mentor
0 Likes

Let us know how it works out, helmut.skolaut3.

Regards,

Morten

jbu
Newcomer
0 Likes
I've the same problem and I'm waiting for a solution. Is there any progress to report?