Hi @mthiru ,
Do you want to send an email to a specific user when you submit a new record through the Edit form successfully?
Do you add a "Machines" data source within your app? Could you please share a bit more about data source used in your app?
Based on the formula that you mentioned, I think there is something wrong with it. I assume that you want to send an email along with the App URL to a specific user when you submit a new record through the Edit form successfully, is it true?
I have made a test on my side, please consider take a try with the following workaround:
Set the OnStart property of the App to following:
Set(UserIDValue, Param("userID"));
If(
!IsBlank(UserIDValue),
Navigate(NewScreen,ScreenTransition.Cover);EditForm(NewForm1)
)
Within the Edit screen, add a Edit form, set the Item property of the Edit form to following:
If(
!IsBlank(UserIDValue),
LookUp('User Data Source', UserId = UserIDValue)
)
Set the OnSelect property of the "Submit" button to following:
SubmitForm(NewForm1)
Set the OnSuccess property of the Edit form to following:
Office365Outlook.SendEmail(
"email here",
"Test",
"https://web.powerapps.com/apps/c1944cc6-1a04-4d73-bf24-564e70cc279e?userID=" & NewForm1.LastSubmit.UserId
)
Note: I assume that there is a "UserId" column in your Users data source, which could identify one record in your data source uniquely.
Please check and see if the following thread would help in your scenario:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Editing-a-record-from-a-flow-powerapp/m-p/265416
https://powerusers.microsoft.com/t5/Building-Power-Apps/Embedded-link-to-a-Sharepoint-List-item-in-PowerApp/m-p/303910
Best regards,