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
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
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

Highlighted
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

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow 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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 4 members 4,724 guests
Please welcome our newest community members: