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 / Sending email automati...
Power Apps
Unanswered

Sending email automatically based on a condition in a power Apps form

(0) ShareShare
ReportReport
Posted on by 6

Hello Power Apps Community,

 

I am working on a sharepoint power apps project where there is a form and I have InvQuantity and ReorderLevel and I want to send email automatically when the InvQuantity is less than ReorderLevel. Please help me how to send this email automatically.

Categories:
  • LRVinNC Profile Picture
    2,297 on at

    So, am I correct in assuming that when a user enters a reorder level in the app and that reorder level is greater than the available stock, then you want to send the email right then and, I presume, notify the user that their isn't sufficient stock but you have sent an email regarding the situation?

    You can embed a SendMail function inside an If function.

    If(InQuantity < ReOrderLevel, Office365Outlook.SendEmailV2(FromAddress, SendToAddress,
    "<Subject of email>", "Body of email"))

    Here's the full syntax of the statement:  https://docs.microsoft.com/en-us/connectors/office365/#send-an-email-(v2)

    LRVinNC



  • kude Profile Picture
    6 on at

    Hi, 

     

    Thanks for your feedback. Where would i put the function that you have provided me? 

  • LRVinNC Profile Picture
    2,297 on at

    That will depend on how you want your workflow to work.  If you want this to go out the moment the user enters a reorder quantity that exceeds inventory (literally as soon as they finish typing the number), then you will put it in the OnChange property of the Reorder input field.  If you want it to check when you get ready to save the record, then you can put it as part of the OnSelect for your save button-- you will need to combine it with your SubmitForm or Patch and any other work you have happening when they click save.

     

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 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard