cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

3 REPLIES 3
Highlighted
Community Support
Community Support

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

Highlighted
Advocate I
Advocate I

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

Highlighted
Super User
Super User

Re: Post to Twitter with an Image

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
firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

Top Solution Authors
Users online (6,918)