cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DamonBaker
New Member

Displaying Twitter MediaURLs in Gallery

Hi All,

I am tryign to accomplish the following:

Twitter Created Date

Tweet Text

Tweet Image

 

I am having issues displaying the MediaURLs image i a Gallery. I am using he following settings:

Gallery -> Items: Twitter.UserTimeline( "theuserestwitterhandle" )

LabelDate ->Text -> Text(DateValue(ThisItem.CreatedAt),DateTimeFormat.ShortDate) *Working

LabelText -> Text -> ThisItem.TweetText *Working

ImageTwitter -> Image -> ThisItem.MediaURLs *Not Working

I get the following error This Item.MediaURLs = This formula uses scope, which is not presently supported for evaluation. | Data type: Table

 

Is there a way to display the associated image to a tweet in Gallery? I am tring to display Twitter messages in a company hub for users that don't have Twitter accounts.

 

Thanks in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
GarethPrisk
Resident Rockstar
Resident Rockstar

As noted in the error, the MediaURLs column is a table of the reference URLs for any images in the Tweet.

You'll need to parse out the table to use the included text as the Image's Image property.

  • If you expect multiple images, then you can consider
    • Embedding a Gallery in the Gallery
    • Items = ThisItem.MediaURLs
      • Add an Image control
        • Image = ThisItem.Value
  • If you don't want multiple images, and only the first
    • Update Image control's property
      • Image = First(ThisItem.MediaUrls).Value

View solution in original post

3 REPLIES 3
GarethPrisk
Resident Rockstar
Resident Rockstar

As noted in the error, the MediaURLs column is a table of the reference URLs for any images in the Tweet.

You'll need to parse out the table to use the included text as the Image's Image property.

  • If you expect multiple images, then you can consider
    • Embedding a Gallery in the Gallery
    • Items = ThisItem.MediaURLs
      • Add an Image control
        • Image = ThisItem.Value
  • If you don't want multiple images, and only the first
    • Update Image control's property
      • Image = First(ThisItem.MediaUrls).Value
DamonBaker
New Member

Thank you Gareth! I appreciate the help, I just started my first app.

Happy coding, and enjoy the journey! 😁

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,334)