Skip to main content

Notifications

Community site session details

Community site session details

Session Id : nt2eOQ0z6eZsyuDM7diCHk
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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

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

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,731 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,077 Most Valuable Professional

Leaderboard
Loading started