cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
StuartSSTech
Level: Powered On

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
Highlighted
Community Support Team
Community Support Team

Re: Post to Twitter with an Image

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

2 REPLIES 2
Highlighted
Community Support Team
Community Support Team

Re: Post to Twitter with an Image

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

StuartSSTech
Level: Powered On

Re: Post to Twitter with an Image

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

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,513)