Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Camera icon doesn't works on desktop while run a app means needs to send a notification message

Like (0) ShareShare
ReportReport
Posted on 2 Apr 2020 16:54:45 by

I have an app with Camera Control. In my desktop camera function is not working but in Mobile iphone or Android its works. So if camera function is not taking picture means i want a Notification message as ("Not Posted") but if camera Takes a picture and stored in collection means I want a Notification("Posted Successfully"). I need this function on  ""Submit Button"".

I already have a coding of:

If(Office365Outlook.SendEmailV2(EmailTo,Select_Dropdown.Selected.Value,"<table><tr><td><b>Title:</b></td><td>"&Select_Dropdown.Selected.Value&"</td></tr><tr><td><b>Object:</b></tr></td><td>"&Message_TextInput&"</td></table>",{Cc:"",Importance:"Low",Attachments:Table({Name:"Photo.jpg",ContentBytes:Camera.Photo,'@odata.type':""})}),

Notify(Select_Dropdown.Selected.Value&" posted successfully.",NotificationType.Success))

 

Thanks in advance

Categories:
  • Verified answer
    PowerAddict Profile Picture
    7,314 Most Valuable Professional on 02 Apr 2020 at 19:20:09
    Re: Camera icon doesn't works on desktop while run a app means needs to send a notification message

    Do you just want to know how to notify in case of a failure? 

     

    If so, then use this code: 

    If(
     Office365Outlook.SendEmailV2(
     EmailTo,
     Select_Dropdown.Selected.Value,
     "<table><tr><td><b>Title:</b></td><td>" & Select_Dropdown.Selected.Value & "</td></tr><tr><td><b>Object:</b></tr></td><td>" & Message_TextInput & "</td></table>",
     {
     Cc: "",
     Importance: "Low",
     Attachments: Table(
     {
     Name: "Photo.jpg",
     ContentBytes: Camera.Photo,
     '@odata.type': ""
     }
     )
     }
     ),
     Notify(
     Select_Dropdown.Selected.Value & " posted successfully.",
     NotificationType.Success
     ),
     Notify(
     "Not Posted",
     NotificationType.Error
     )
    )

     

    Let me know if this helps or if you were looking for something else. 

     

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

     

    Thanks!
    Hardit Bhatia
    https://thepoweraddict.com

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 250 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 122

#3
stampcoin Profile Picture

stampcoin 108

Overall leaderboard
Loading started
Loading complete