<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: API hub Workflow API for Cloud Foundry  try out failed with error unauthorized in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617984#M4732708</link>
    <description>&lt;P&gt;Thank you, after add below code to the workflow instance, it works now.&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;    "authorities": [&lt;/P&gt;&lt;P&gt;        "WORKFLOW_INSTANCE_START",&lt;/P&gt;&lt;P&gt;        "MESSAGE_SEND"&lt;/P&gt;&lt;P&gt;    ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2022 03:42:58 GMT</pubDate>
    <dc:creator>TikeerGuo</dc:creator>
    <dc:date>2022-06-10T03:42:58Z</dc:date>
    <item>
      <title>API hub Workflow API for Cloud Foundry  try out failed with error unauthorized</title>
      <link>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaq-p/12617980</link>
      <description>&lt;P&gt;Dear colleagues,&lt;/P&gt;
  &lt;P&gt;SAP BTP Trial account, using Boster to set up workflow management, then in BAS create workflow mta project and deployed into BTP, can manually start the deployed workflow instance in BTP workflow management, in the mybox can approve the workflow, workflow executed successfully.&lt;/P&gt;
  &lt;P&gt;Then try to call this instance using API hub Workflow API for Cloud Foundry, configured the environment in API Hub, after then try with post request &lt;A href="https://api.workflow-sap.cfapps.ap21.hana.ondemand.com/workflow-service/rest/v1/workflow-instances" target="test_blank"&gt;https://api.workflow-sap.cfapps.ap21.hana.ondemand.com/workflow-service/rest/v1/workflow-instances&lt;/A&gt;, error with unauthorized, do you have any idea what's the root cause here?&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2056649-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;The client ID and client secret for above screenshot is get from below place(Process Integration Instance).&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2056651-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Error after try out post.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2056650-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 11:50:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaq-p/12617980</guid>
      <dc:creator>TikeerGuo</dc:creator>
      <dc:date>2022-06-09T11:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: API hub Workflow API for Cloud Foundry  try out failed with error unauthorized</title>
      <link>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617981#M4732705</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;tikeer.guo&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;why do you use the credentials from the Integration Suite service instance. You would need to take them from the SAP Workflow service instance. If there is no instance yet for Workflow service, you need to create one.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jannes&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 12:41:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617981#M4732705</guid>
      <dc:creator>jannes_schofeld</dc:creator>
      <dc:date>2022-06-09T12:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: API hub Workflow API for Cloud Foundry  try out failed with error unauthorized</title>
      <link>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617982#M4732706</link>
      <description>&lt;P&gt;In addition to what Jannes said, you likely have to create a service instance with other scopes than those that come with the service instance by default (which are read-only). See &lt;A href="https://help.sap.com/docs/WORKFLOW/e157c391253b4ecd93647bf232d18a83/c74f5ff9065b4baeb700d033602ef1d9.html?locale=en-US" target="test_blank"&gt;https://help.sap.com/docs/WORKFLOW/e157c391253b4ecd93647bf232d18a83/c74f5ff9065b4baeb700d033602ef1d9.html?locale=en-US&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 13:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617982#M4732706</guid>
      <dc:creator>tobias_breyer</dc:creator>
      <dc:date>2022-06-09T13:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: API hub Workflow API for Cloud Foundry  try out failed with error unauthorized</title>
      <link>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617983#M4732707</link>
      <description>&lt;P&gt;Thank you, the client id and client secret should be for workflow service. It works now.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 03:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617983#M4732707</guid>
      <dc:creator>TikeerGuo</dc:creator>
      <dc:date>2022-06-10T03:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: API hub Workflow API for Cloud Foundry  try out failed with error unauthorized</title>
      <link>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617984#M4732708</link>
      <description>&lt;P&gt;Thank you, after add below code to the workflow instance, it works now.&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;    "authorities": [&lt;/P&gt;&lt;P&gt;        "WORKFLOW_INSTANCE_START",&lt;/P&gt;&lt;P&gt;        "MESSAGE_SEND"&lt;/P&gt;&lt;P&gt;    ]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 03:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/api-hub-workflow-api-for-cloud-foundry-try-out-failed-with-error/qaa-p/12617984#M4732708</guid>
      <dc:creator>TikeerGuo</dc:creator>
      <dc:date>2022-06-10T03:42:58Z</dc:date>
    </item>
  </channel>
</rss>

