@Anonymous
You should have nothing after your SubmitForm function. In your case, you are attempting to send an email right after you submit...but how do you know it submitted successfully??
The Form provides a perfect OnSuccess action that you can use to send your email.
Change your Submit formula to: SubmitForm(EditForm)
Then in your OnSuccess action of the EditForm, place the following formula:
With(Self.LastSubmit;
Office365Outlook.SendEmailV2(
"Test@Test.com";
"Test";
Profil & "<br>" & Ordre & "<br>" & Beskrivelse
)
)
The above assumes you have a Profil, Ordre and Beskrivelse column in your record.
I hope this is helpful for you.