I have an app for processing staff onboarding. There is a form to begin a new onboarding where only the staff name is entered. The form has a single data card. The submit button has the following OnSelect:
SubmitForm(NewOnboarding_1);
Set(varNewOnboardingName, DataCardValue10_1);
Notify("Your updates have been saved", NotificationType.Success);
Office365Outlook.SendEmail("email address", "Notice: New Staff Onboarding", Concatenate("A new onboarding has been started for ", varNewOnboardingName), {Importance:"Normal"});
ResetForm(NewOnboarding_1);
Set(varOnboardingVisible, false);
Refresh('Employee Onboarding')
I removed the actual email address for the purpose of sharing the OnSelect property, but trust me that the email does send. What I'm struggling with is getting the varNewOnboardingName value into the email. I know something is not right with setting the variable value but haven't been able to work out what it is. Can anyone help?