@vikna
Sure, it's absolutely possible to do this.
You will want to integrate Power Automate with Power Apps Canvas App to trigger the email whenever the checkbox is checked and the button is clicked.
Here's how you can accomplish this:
1. Creating a Power Automate Flow:
- Go to Power Automate and click on "Create" > "Instant flow".
- Name your flow and choose the "Power Apps" trigger, then click "Create".
- Next, add a new action called "Send an email (V2)" under the "Office 365 Outlook" connector.
- In the "To" field, click on "Ask in Power Apps" to make this dynamic.
Similarly, do this for the "Subject" and "Body" fields as well if you want them to be dynamic.
- If using Power Apps(V2) you instead add parameters by clicking Add an input at the top instead
- Add at least one "Respond to a PowerApp or flow" block in your Flow if you want Power Apps Canvas App to WAIT for the Flow to complete before moving on to the next part of your formula.

Otherwise leave it out if you DON'T want the Canvas App to wait for the Flow to complete before moving on to the next part of your formula.
- Save your Flow.
2. Integrating Power Automate with Power Apps:
- Go back to Power Apps and select the button that submits the record.
- In the formula bar, enter the following:
If(
Checkbox1.Value = true,
'YourFlowName'.Run(TextInputEmail.Text, TextInputSubject.Text, TextInputBody.Text)
);
SubmitForm(Form1)
Where 'YourFlowName' is the name of the Power Automate flow you created, and TextInputEmail.Text, TextInputSubject.Text, TextInputBody.Text are the text inputs in your form from which you are getting the email, subject, and body of your email. Make sure to replace these with your actual control names.
In this formula example, the If function checks if the checkbox (named Checkbox1 here) is checked. If it's true, then it runs the flow, passing in the email, subject, and body. After that, it submits the form regardless of the checkbox's value.
Remember, this formula example assumes that you have a valid email address, subject, and body in the respective fields of your form. If they are not valid, you should add error checking to handle this.
If you want Power Apps to wait for the flow to finish before submitting the Form, you need to add at least one "Respond to a PowerApp or Flow" action in your flow. If you don't include this action, Power Apps won't wait for the flow to finish in our "run" formula, before moving on to the next action to Submit the form!
It is not necessary to even use the return value in Canvas App or for this block to be actually hit in the Flow, it simply must be present somewhere in the Flow at least once, to signal whether you want Power Apps Canvas App to wait for the Flow to complete or not. When it's not present it will not wait. If at least one is present, then it should wait.
Hope it helps @vikna