cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
StuartSSTech
Advocate I
Advocate I

Post to Twitter with an Image

I have trolled the internet for a while but all im looking to do is post to twitter with an image from a sharepoint list or photo library.

 

I have tried a few different techniques but can anyone advise on how this is possible?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-xida-msft
Community Support
Community Support

Hi @StuartSSTech,

 

Do you want to post a tweet with an image from a SharePoint library using Microsoft Flow?

 

I have made a test on my side and please take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a "Get file content" action of SharePoint connector, specify Site Address, File Identifier field set to a specific image file within my SharePoint library.
  • Add a "Post a tweet" action, specify a Tweet text, Media field set to File Content dynamic content of "Get file content" action.

Image reference:30.JPG

The flow works successfully as below:31.JPG

 

29.JPG

 

 

In addition, there is a limit in the size of image uploaded when we post a tweet with an image. The maximum size of image uploaded is 5 MB.

 

More details about the limits of Twitter connector within Microsoft Flow, please check the following article:

Twitter connector

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xida-msft
Community Support
Community Support

Hi @StuartSSTech,

 

Do you want to post a tweet with an image from a SharePoint library using Microsoft Flow?

 

I have made a test on my side and please take a try with the following workaround:

  • Add a proper trigger, here I use Flow Button trigger.
  • Add a "Get file content" action of SharePoint connector, specify Site Address, File Identifier field set to a specific image file within my SharePoint library.
  • Add a "Post a tweet" action, specify a Tweet text, Media field set to File Content dynamic content of "Get file content" action.

Image reference:30.JPG

The flow works successfully as below:31.JPG

 

29.JPG

 

 

In addition, there is a limit in the size of image uploaded when we post a tweet with an image. The maximum size of image uploaded is 5 MB.

 

More details about the limits of Twitter connector within Microsoft Flow, please check the following article:

Twitter connector

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi Kris...

 

The part i needed was the get file content.

 

Adding New item in SharePoint List with the image as the Attachment to the list item, use the Get Attachement to get the identifier.

 

Use the Get file content using the identifier field captured using the Get Attachement.

 

Then post to twitter using the get file content for the media!

 

Thanks for your help Kris!! 

 

Capture.JPG

deleted



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Top Solution Authors
Users online (1,143)