cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (60,422)