<?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>topic RE: Error When using Send Chat Message action of Microsoft Graph Teams API in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57158#M1430</link>
    <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="dc415189-6e45-44d0-b0dc-3f5025e2c921" data-tag-text="@Kevin Rodriguez" href="https://community.blueprism.com/network/profile?UserKey=dc415189-6e45-44d0-b0dc-3f5025e2c921" data-itemmentionkey="91347f27-429f-40b2-98cd-b4cee0799dc7"&gt;@Kevin Rodriguez&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I'm not sure what you mean by "no extra AD identity needed...". Even if you're running this locally, you have to request a token using the authentication VBO and then pass that token into the Teams Web API. Are you doing that?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 15 Dec 2022 17:47:00 GMT</pubDate>
    <dc:creator>ewilson</dc:creator>
    <dc:date>2022-12-15T17:47:00Z</dc:date>
    <item>
      <title>Error When using Send Chat Message action of Microsoft Graph Teams API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57155#M1427</link>
      <description>Dear Team,&lt;BR /&gt;i m trying to send my first Teams Message with the Teams API.&lt;BR /&gt;i can generate the access token with the VBO Graph Authentication. but when im about to send a chat message i have the error below.&lt;BR /&gt;any ideay to fix it please.?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;"Internal : Unexpected error Error during Web API HTTP Request&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;HTTP Status Code: 412&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;HTTP Response Content: {"error":{"code":"PreconditionFailed","message":"Requested API is not supported in application-only context","innerError":{"date":"2022-08-06T15:11:04","request-id":"e623181d-9c7f-4a69-8ead-4de0e74c3072","client-request-id":"e623181d-9c7f-4a69-8ead-4de0e74c3072"}}}"&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kouadio ANDOKOU&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Aug 2022 15:18:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57155#M1427</guid>
      <dc:creator>KouadioANDOKOU</dc:creator>
      <dc:date>2022-08-06T15:18:00Z</dc:date>
    </item>
    <item>
      <title>RE: Error When using Send Chat Message action of Microsoft Graph Teams API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57156#M1428</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="a4450d2f-115f-40cd-95bf-c2c5dc19fdf6" data-tag-text="@Kouadio ANDOKOU" href="https://community.blueprism.com/network/profile?UserKey=a4450d2f-115f-40cd-95bf-c2c5dc19fdf6" data-itemmentionkey="7c447d81-5838-4bbe-bb50-9141bbcbd19f"&gt;@Kouadio ANDOKOU&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;What type of token are you creating? It sounds like you might be generating an Application token. If that is the case, you'll find that much of the Teams API in Graph is not available to you. Graph really wants you to use User tokens which means your digital workers should have their own AD identities.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 08 Aug 2022 02:49:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57156#M1428</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-08-08T02:49:00Z</dc:date>
    </item>
    <item>
      <title>RE: Error When using Send Chat Message action of Microsoft Graph Teams API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57157#M1429</link>
      <description>Bumped into the same issue. &lt;A class="user-content-mention" data-sign="@" data-contactkey="a4450d2f-115f-40cd-95bf-c2c5dc19fdf6" data-tag-text="@Kouadio ANDOKOU" href="https://community.blueprism.com/network/profile?UserKey=a4450d2f-115f-40cd-95bf-c2c5dc19fdf6" data-itemmentionkey="7c447d81-5838-4bbe-bb50-9141bbcbd19f"&gt;@Kouadio ANDOKOU&lt;/A&gt;&lt;SPAN&gt;, where you able to fix it? I have given the API delegate access (and even application) to send messages on my behalf and while running the VBO in debug mode (no extra AD identity needed since I am running everything on my PC, not on a worker) I still get this error.&lt;BR /&gt;&lt;BR /&gt;Eric Wilson, is there anything I am missing? I already have the token working, and my VBO looks ready to send messages, however I get that error.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kevin Rodriguez&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Dec 2022 16:56:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57157#M1429</guid>
      <dc:creator>KevinRodriguez</dc:creator>
      <dc:date>2022-12-15T16:56:00Z</dc:date>
    </item>
    <item>
      <title>RE: Error When using Send Chat Message action of Microsoft Graph Teams API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57158#M1430</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="dc415189-6e45-44d0-b0dc-3f5025e2c921" data-tag-text="@Kevin Rodriguez" href="https://community.blueprism.com/network/profile?UserKey=dc415189-6e45-44d0-b0dc-3f5025e2c921" data-itemmentionkey="91347f27-429f-40b2-98cd-b4cee0799dc7"&gt;@Kevin Rodriguez&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;I'm not sure what you mean by "no extra AD identity needed...". Even if you're running this locally, you have to request a token using the authentication VBO and then pass that token into the Teams Web API. Are you doing that?&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:47:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57158#M1430</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-12-15T17:47:00Z</dc:date>
    </item>
    <item>
      <title>RE: Error When using Send Chat Message action of Microsoft Graph Teams API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57159#M1431</link>
      <description>Thank you for your prompt reply. Yes, sorry, I have authenticated and used the token into Teams Web API and didn't work, I get the same error as the original post. Please find below some screenshots:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7349.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/7526iF91962F1AF82F462/image-size/large?v=v2&amp;amp;px=999" role="button" title="7349.jpg" alt="7349.jpg" /&gt;&lt;/span&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7350.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/7525iBD3A9E15753C4843/image-size/large?v=v2&amp;amp;px=999" role="button" title="7350.jpg" alt="7350.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="7351.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/7529i5D4132D057431510/image-size/large?v=v2&amp;amp;px=999" role="button" title="7351.jpg" alt="7351.jpg" /&gt;&lt;/span&gt;I've set everything under my Azure Portal (client ID, secret, permissions), but I am not sure what else I need to set up in order to send messages through the Teams API.&amp;nbsp;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kevin Rodriguez&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:58:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57159#M1431</guid>
      <dc:creator>KevinRodriguez</dc:creator>
      <dc:date>2022-12-15T19:58:00Z</dc:date>
    </item>
    <item>
      <title>RE: Error When using Send Chat Message action of Microsoft Graph Teams API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57160#M1432</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="ebc2b8de-db4e-423d-bdd3-0185076abd5f" data-tag-text="@Kevin Rodriguez" href="https://community.blueprism.com/network/profile?UserKey=ebc2b8de-db4e-423d-bdd3-0185076abd5f" data-itemmentionkey="4f22615b-cd5a-4b2e-b649-9474dbb8ee1e"&gt;@Kevin Rodriguez&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;As I mentioned earlier in the thread, the Teams API doesn't expose many actions that can be used with an Application Access token. The majority require that you have a Delegated Access token. Delegated Access tokens require a Client ID, Client Secret, Username, and Password as shown in the example below:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7354.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/7528iECB18D3530BFB69C/image-size/large?v=v2&amp;amp;px=999" role="button" title="7354.png" alt="7354.png" /&gt;&lt;/span&gt; ​&lt;BR /&gt;For Username and Password, you could use your own credentials or have a dedicated AD user account created for a digital worker and use that instead.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 15 Dec 2022 23:26:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57160#M1432</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-12-15T23:26:00Z</dc:date>
    </item>
    <item>
      <title>RE: Error When using Send Chat Message action of Microsoft Graph Teams API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57161#M1433</link>
      <description>Thank you for your reply, Eric. That makes sense, I should be using &lt;STRONG&gt;Get Delegated Access Token&lt;/STRONG&gt; instead. I tried it with my credentials and I get error "The remote server returned an error: (500) Internal Server Error.". I used the user/password that I log in to Azure Portal, where previous screenshots were taken. I also created another secret, but it didn't matter if the credentials are correct, I get a 500 error. Please see below my configuration:&amp;nbsp;&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7360.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/7538i89538876E305370B/image-size/large?v=v2&amp;amp;px=999" role="button" title="7360.jpg" alt="7360.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;Is there anything I should be doing beforehand? I can say connection works, as using &lt;STRONG&gt;Get Application Access Token&lt;/STRONG&gt; still works and generates a token.&lt;BR /&gt;&lt;BR /&gt;Quick overview:&lt;BR /&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7361.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/7534i263F2C9E8D6E711D/image-size/large?v=v2&amp;amp;px=999" role="button" title="7361.jpg" alt="7361.jpg" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;BR /&gt;Thank you so much for all your support!
&lt;DIV style="position: absolute; display: none; z-index: 16777271;"&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Kevin Rodriguez&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57161#M1433</guid>
      <dc:creator>KevinRodriguez</dc:creator>
      <dc:date>2022-12-16T15:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Error When using Send Chat Message action of Microsoft Graph Teams API</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57162#M1434</link>
      <description>&lt;A class="user-content-mention" data-sign="@" data-contactkey="ebc2b8de-db4e-423d-bdd3-0185076abd5f" data-tag-text="@Kevin Rodriguez" href="https://community.blueprism.com/network/profile?UserKey=ebc2b8de-db4e-423d-bdd3-0185076abd5f" data-itemmentionkey="cc2e6443-52be-47f4-bcef-7ac0d07aba88"&gt;@Kevin Rodriguez&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;It's been a while since I set up my test environment, but as I recall there's a "trick" to delegated access. The idea behind delegated access is that when an application attempts to work on behalf of another user the user should be presented with the pop-up browser window, notified of the request, and given the option to accept or reject the delegation. In this case, we're not presenting a window for this as this is functionality that's generally run un-attended. Luckily, Microsoft considered this.&lt;BR /&gt;&lt;BR /&gt;When you assign the permissions to the client ID/client secret credential you created in Azure, there's an option to grant admin consent upfront. Just click the button/link referenced below and it will automatically provide the overall consent for the credential. I think that will take care of it for your use of a delegated access token.&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="7369.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/7544i29C6376BB27C57CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="7369.png" alt="7369.png" /&gt;&lt;/span&gt;​&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Dec 2022 15:21:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Error-When-using-Send-Chat-Message-action-of-Microsoft-Graph/m-p/57162#M1434</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-12-16T15:21:00Z</dc:date>
    </item>
  </channel>
</rss>

