web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display the image stor...
Power Apps
Unanswered

Display the image stored in PowerApps media on pdf viewer control with respect to user login

(0) ShareShare
ReportReport
Posted on by 26

Hey,

 

I have a screen which has a pdf viewer control.

One way to view the pdf is to store the file in PowerApps media and enter the name in the document property of the screen.

 

I also have a login screen before this screen where the customer logs in with the "Quote ID" to view the pdf which is related to the respective quote.

 

Is there a way to view the pdf in the pdf viewer control with respect to the login by storing multiple media in powerapps and displaying only particular file for particular quote?

 

Please help!

 

Thank you.

pdf.PNG
Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @praneethapradee 

     

    In such a case, you can have an IF loop to select from the media files. Can you try to use the below expression?

     

    If(TextInput1.Text = "Media1",Media1,TextInput1.Text = "Media2",Media2,TextInput1.Text = "Media3",Media3)

    Here, I have assumed it to be taken from a textInput control. If this differs, please share more details so that we might be able to help you better.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • praneethapradee Profile Picture
    26 on at

    Hey,

    Thanks for your message!

    Actually I do not have multiple text inputs as ur formula claims.

     

    I have 3 screens:

     

    1st screen:

     

    Customer can log In with the correct quote id and email (data source: Dynamics 365 Quotes)

     

    My 2nd scrren:

     

    Displays Quote details(data source : dynamics 365 quotes) and File name of the pdf( Data source: notes from dynamics 365) 

    this pdf is created in dynamics quotes and is saved as a note on timeline of the quote.

     

    when I press view pdf button I will navigate to screen 3: 

     

    in scrren 3 I have pdf viewer control where I would like to see the pdf.

     

    How can i store multiple media in PowerApps locally and view the pdf according to the pdf belonging to the  respective quote?

     

    Please help!

     

    Thank you.

     

     

     

    screen2.PNG
    scrren 1.PNG
    screen 3.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard