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 / Inherited a power app ...
Power Apps
Unanswered

Inherited a power app at work and I'm lost in the sauce.

(0) ShareShare
ReportReport
Posted on by 6

I inherited a power app at my work. I've never worked with power apps until now.  We use it to perform safety audits on jobsites and notify people of hazards we find.  We also use it to notify people of positive observations of safety.

The problem is that when we click our button to "save and send email to assignee" even if it is a positive observation it sends an email stating that there is an open hazard. (current code posted below)  Is there a way to make it if (observation type="positive observation") then send email "There has been a positive safety observation on your jobsite."

 

 

 

SubmitForm(Form1) & Office365.SendEmail(Form1.LastSubmit.AssignedTo.Email, "You have been assigned a hazard item",
"Project Name: " & Form1.LastSubmit.Title & "

Review Date: " & Form1.LastSubmit.Review_x0020_Date & "

Hazard Description: " & Form1.LastSubmit.Description & "

Location: " & Form1.LastSubmit.Location & "

Corrective Actions: " & Form1.LastSubmit.Corrective_x0020_Action & "

Current Status: " & If(Form1.LastSubmit.Corrected = true, "Corrected", "Not Corrected") & "

" & "To view attached pictures and correct the item, follow this link: " & Form1.LastSubmit.'{Link}' & "

 

Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    69,417 Most Valuable Professional on at

    Is there a dropdown or something in the app that you use to set the observation type?  If there is then put an If statement in the OnChange event for that dropdown to set a variable to either "There has been a positive safety observation on your jobsite." or "You have been assigned a hazard item", depending on the type selected.  Then change your SendEmail to use the variable instead of "You have been assigned a hazard item" as the second parameter.

  • dadegroff11 Profile Picture
    6 on at

    Yes there is.   Top right drop-down is the hazard/positive observation selector.  The OnChange is marked false currently.

    Capture.PNG
  • dadegroff11 Profile Picture
    6 on at

    Capture.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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 899

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 499

Last 30 days Overall leaderboard