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
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
WarrenBelz
146,731
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
66,077
Most Valuable Professional