<?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: OAUTH2.0 API trigger in SAP Data Intelligence using OpenAPI client Operator in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550585#M4705675</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to create an OpenAPI connection in the connection management with the oauth token endpoint and then configure the client.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2026550-screen-shot-2022-02-28-at-114208-am.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2026551-screen-shot-2022-02-28-at-114255-am.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lochner&lt;/P&gt;</description>
    <pubDate>Mon, 28 Feb 2022 01:53:04 GMT</pubDate>
    <dc:creator>lochner_louw</dc:creator>
    <dc:date>2022-02-28T01:53:04Z</dc:date>
    <item>
      <title>OAUTH2.0 API trigger in SAP Data Intelligence using OpenAPI client Operator</title>
      <link>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaq-p/12550583</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;We are trying to trigger OAUTH2.0 API from DI Intelligence, by using openAPI client operator. &lt;/P&gt;
  &lt;P&gt;we have provided necessary configuration details such as Oauth2 toekn, client ID client secret etc, but this API also requires body while triggering the API. &lt;/P&gt;
  &lt;P&gt;No configuration option is available for providing the body in Open API client, so we have a JAVA script operator preceding the open API client wherein we are providing msg.body. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2026503-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2026502-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;while executing the pipeline we are getting &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2026501-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;please do let us know, if someone has experienced the similar issue and how did you resolve it &lt;/P&gt;
  &lt;P&gt;Thanks&lt;/P&gt;
  &lt;P&gt;Priyanka Kes&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 08:14:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaq-p/12550583</guid>
      <dc:creator>former_member765920</dc:creator>
      <dc:date>2022-02-25T08:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: OAUTH2.0 API trigger in SAP Data Intelligence using OpenAPI client Operator</title>
      <link>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550584#M4705674</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;How you found configuration details like Oauth token..?&lt;/P&gt;&lt;P&gt;Did you use any SAP tool..?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 04:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550584#M4705674</guid>
      <dc:creator>former_member715705</dc:creator>
      <dc:date>2022-02-26T04:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: OAUTH2.0 API trigger in SAP Data Intelligence using OpenAPI client Operator</title>
      <link>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550585#M4705675</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to create an OpenAPI connection in the connection management with the oauth token endpoint and then configure the client.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2026550-screen-shot-2022-02-28-at-114208-am.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2026551-screen-shot-2022-02-28-at-114255-am.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Lochner&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 01:53:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550585#M4705675</guid>
      <dc:creator>lochner_louw</dc:creator>
      <dc:date>2022-02-28T01:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: OAUTH2.0 API trigger in SAP Data Intelligence using OpenAPI client Operator</title>
      <link>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550586#M4705676</link>
      <description>&lt;P&gt;Thanks Lochner for the response. &lt;/P&gt;&lt;P&gt;But where do we pass the body in the configuration. &lt;/P&gt;&lt;P&gt;My requirement is to pass certain data as part of message body. I tried sending it via the JavaScript operator, it led to error given in the question "Failed to read request body."&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Priyanka Kes&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 05:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550586#M4705676</guid>
      <dc:creator>former_member765920</dc:creator>
      <dc:date>2022-03-07T05:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: OAUTH2.0 API trigger in SAP Data Intelligence using OpenAPI client Operator</title>
      <link>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550587#M4705677</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The message structure is case-sensitive so if you want to refer to the attributes or body then you have to specify it as &lt;EM&gt;msg.&lt;STRONG&gt;B&lt;/STRONG&gt;ody&lt;/EM&gt; or &lt;EM&gt;msg.&lt;STRONG&gt;A&lt;/STRONG&gt;ttributes&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;function onInput(ctx,s) {

  var msg = {};

  msg.Body = { "my_json_data": "data" };

  msg.Attributes["openapi.consumes"] = "application/json";&lt;BR /&gt;  msg.Attributes["openapi.produces"] = "application/json";
  msg.Attributes["openapi.method"] = "POST";
  msg.Attributes["openapi.path_pattern"] = "/v1/some/path";

  $.output(msg);

}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this makes more sense.&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;Lochner&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 06:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/oauth2-0-api-trigger-in-sap-data-intelligence-using-openapi-client-operator/qaa-p/12550587#M4705677</guid>
      <dc:creator>lochner_louw</dc:creator>
      <dc:date>2022-03-07T06:34:23Z</dc:date>
    </item>
  </channel>
</rss>

