Skip to Content
Technical Articles
Author's profile photo Helmut Skolaut

Accessing Cloud Integration via Excel Power Query


I wanted to access my iFlow from an Excel Power Query and i wanted to access it via Oauth2 Login.



  • You have created an iFlow that has an HTTP inbound endpoint and you have assigned a User Role to it.
  • You have created a Process Integration Runtime Instance and created an OAuth key for it

How to setup your Excel:

  1. You have to create an empty Query:
  2. Then you have to open the extended editor:
  3. Then you can enter following code:
        token_url = "URL TO OAUTH TOKEN",
        token_path = "oauth/token",
        api_url = "URL TO INTEGRATION SUITE",
        api_path ="URL PATH TO iFLOW",
        TokenResponse = Json.Document(
                    RelativePath = token_path,
                    Query = [grant_type="client_credentials"],
                    Headers = [
        token = TokenResponse[access_token],
        Source = Xml.Tables(
                    RelativePath = api_path,
                    Headers = [
                        #"Authorization"="Bearer "&token,
    	Table0 = Source{0}[Table],
        #"ChangedType" = Table.TransformColumnTypes(
    			{"PackageName", type text},
  4. You have now two HTTPS Requests and you need to manually configure the access method for each service via this menu:
    –> The URL for the Token Access you have to add the ClientID and ClientSecret in view “Standard”
    –> The URL for the Service call, you have to set up to “Anonym”

What ever you see in the bottom with Table0 i advice to execute your iflow from Postman first, then you download the XML output to your local PC and you create the query via the wizzard. Then you copy code you need into bottom of the code


Source that helped me:

I have used this example i have found:



Blog from Martin Pankraz :

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Martin Pankraz
      Martin Pankraz

      Hey Helmut Skolaut,

      thanks for sharing your custom code approach! Might be worth linking to my Microsoft docs entry on the matter here. It discusses the technical options and the benefits if solving the authentication/authorization challenge with the SAP OAuth server in one place to avoid burdening consumer clients like Excel. With that you can use the OData connector on Excel for instance rather than a blank query.



      Author's profile photo Helmut Skolaut
      Helmut Skolaut
      Blog Post Author

      Thanks Martin - also very nice blog. I will mention it as alternative way.