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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,339)