Failure while trying to download an image from a teams message using Microsoft teams graph API connector in Logic Apps
Puneet Jain
20
Reputation points Microsoft Employee
I am trying to download an image from a teams message using the Send a Microsoft Graph HTTP request
action in Microsoft Teams connector in Logic Apps. From a URl of type this:
https://graph.microsoft.com/v1.0/teams/{team-id}/channels/{channel-id}/messages/{message-id}/hostedContents/{content-id}/$value
With ContentType: image/png
Here is the error I am getting while making the request:
BadRequest
Http request failed as the content was not valid: 'Unable to translate bytes [89] at index 0 from specified code page to Unicode.'.
Can you help suggest how this can be rectified? The graph connector has the necessary permissions for this call, hence I want to utilize the same. Do let me know if there is a workaround.
Sign in to answer