<?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: IRPA API Trigger - Invalid API Key in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175687#M4553333</link>
    <description>&lt;P&gt;Hi Christoph,&lt;/P&gt;&lt;P&gt;Yes it works! Thanks a lot for your help :).&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;</description>
    <pubDate>Mon, 10 Feb 2020 09:18:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2020-02-10T09:18:51Z</dc:date>
    <item>
      <title>IRPA API Trigger - Invalid API Key</title>
      <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaq-p/12175681</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I created an API trigger for my IRPA Deployment. I followed the SAP Help document and tested the post URL using POSTMAN and it started a job and I could see it on the Cloud Factory. I copied the code generated by POSTMAN and tried using it in an AJAX call in my UI5 app so that I can start a job through my UI5 App. I get this error "status: 403, code: "SAP_IPA_12019", severity: "ERROR", message: "The API key is invalid."&lt;/P&gt;
  &lt;P&gt;What could I be doing wrong here?&lt;/P&gt;
  &lt;P&gt;Thanks in advance!&lt;/P&gt;
  &lt;P&gt;Best Regards&lt;/P&gt;
  &lt;P&gt;TP&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 11:32:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaq-p/12175681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-06T11:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: IRPA API Trigger - Invalid API Key</title>
      <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175682#M4553328</link>
      <description>&lt;P&gt;Hi TP&lt;/P&gt;&lt;P&gt;first I would double check that the API key really matches the one you used in POSTMAN. Maybe while copying you missed a character or added a SPACE somewhere?&lt;/P&gt;&lt;P&gt;If that is not the reason, is the OAuth authentication working or are you already getting the 403 error here? Do you ave the Header field irpa-trigger-token in your call? Is the Content-type set to application-json? Can you provide your code of the AJAX call to check if something is missing?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 13:19:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175682#M4553328</guid>
      <dc:creator>Mark_Teichmann</dc:creator>
      <dc:date>2020-02-06T13:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: IRPA API Trigger - Invalid API Key</title>
      <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175683#M4553329</link>
      <description>&lt;P&gt;Hi Mark Teichmann,&lt;/P&gt;&lt;P&gt;Thanks a lot for your quick response. My answer to all your questions is yes.&lt;/P&gt;&lt;P&gt;Here is my AJAX call:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1777133-ajax-call.jpg" /&gt;&lt;/P&gt;&lt;P&gt;and Here is how I set the destination:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1777134-destination.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Network:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1777136-network.jpg" /&gt;&lt;/P&gt;&lt;P&gt;I trigger the call from my UI5 App .&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1777135-app.jpg" /&gt;&lt;/P&gt;&lt;P&gt;Before this attempt of copying the code generated by POSTMAN, I first tried fetching the token in my program and passing it to the POST ajax call. I received the token, but received the same error for the trigger API.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1777137-fetchtoken.jpg" /&gt;&lt;/P&gt;&lt;P&gt;The destination for this call is as below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1777138-tokendestination.jpg" /&gt;&lt;/P&gt;&lt;P&gt;My app is running in my actual account and I created the IRPA stuff from my trial account. Don't know if that matters..&lt;/P&gt;&lt;P&gt;Hope you can find a problem in my code and give me the solution :).&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 21:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175683#M4553329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-06T21:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: IRPA API Trigger - Invalid API Key</title>
      <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175684#M4553330</link>
      <description>&lt;P&gt;Hi TP,&lt;/P&gt;&lt;P&gt;could you try to generate a new irpa trigger token? It seems your current one is invalid.&lt;/P&gt;&lt;P&gt;To do this just edit your trigger and click on the "Generate new token" button&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/storage/attachments/1775984-2020-02-07-14-29-44-sap-intelligent-robotic-proces.png" target="_blank"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1775984-2020-02-07-14-29-44-sap-intelligent-robotic-proces.png" /&gt;2020-02-07-14-29-44-sap-intelligent-robotic-proces.png(75.9 kB)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 13:29:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175684#M4553330</guid>
      <dc:creator>former_member659084</dc:creator>
      <dc:date>2020-02-07T13:29:26Z</dc:date>
    </item>
    <item>
      <title>Re: IRPA API Trigger - Invalid API Key</title>
      <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175685#M4553331</link>
      <description>&lt;P&gt;Hi Cristoph,&lt;/P&gt;&lt;P&gt;I tried this too assuming that was the problem. Didn't work!! With the same irpa token I was able to start the bot in POSTMAN.&lt;/P&gt;&lt;P&gt;Thanks for your answer!&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 15:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175685#M4553331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-07T15:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: IRPA API Trigger - Invalid API Key</title>
      <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175686#M4553332</link>
      <description>&lt;P&gt;Hi Teena,&lt;/P&gt;&lt;P&gt;my colleague Pavel might have a solution for you:&lt;/P&gt;&lt;P&gt;Please put the “irpa-trigger-token” in the body
(instead of the header) as follows:&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt; 
"irpaTriggerToken":
"xxxxxxxxxxxxxxxxxxxx" 
&lt;/P&gt;&lt;P&gt;} &lt;/P&gt;&lt;P&gt;I think the
problem lies with the Destination Service – it does not transmit the header.&lt;/P&gt;&lt;P&gt;Please let
me know if this doesn’t work and we will look for another solution.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Christoph&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 09:03:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175686#M4553332</guid>
      <dc:creator>former_member659084</dc:creator>
      <dc:date>2020-02-10T09:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: IRPA API Trigger - Invalid API Key</title>
      <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175687#M4553333</link>
      <description>&lt;P&gt;Hi Christoph,&lt;/P&gt;&lt;P&gt;Yes it works! Thanks a lot for your help :).&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 09:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175687#M4553333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2020-02-10T09:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: IRPA API Trigger - Invalid API Key</title>
      <link>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175688#M4553334</link>
      <description>&lt;P&gt;Hello  &lt;SPAN class="mention-scrubbed"&gt;christoph.gross&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;putting the irpa-trigger-token in the body worked for me as well, when I tested it manually via Postman. However I got another error in my UI5 Application when I try to fetch the token.&lt;/P&gt;&lt;P&gt;I configured the following destination to the token endpoint. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1787818-destination-configuration.png" /&gt;&lt;/P&gt;&lt;P&gt;Then I referenced that in my neo-app.json and implemented an ajax call in my code. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1787819-fetchtokenfunction.png" /&gt;&lt;/P&gt;&lt;P&gt;When I run the application I get the following error message:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1787820-errormessage.png" /&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestions why it is not working. I assume that the grant_type "client_credentials" is correctly specified?&lt;/P&gt;&lt;P&gt;Thanks in advance and best regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;</description>
      <pubDate>Fri, 06 Mar 2020 13:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/irpa-api-trigger-invalid-api-key/qaa-p/12175688#M4553334</guid>
      <dc:creator>christianehresmann</dc:creator>
      <dc:date>2020-03-06T13:45:16Z</dc:date>
    </item>
  </channel>
</rss>

