To do that,
Set(var_ItemID, Value(Param("ID")));
Set(var_Item, If(!IsBlank(var_ItemID), LookUp(DataSource, ID = var_ItemID), Defaults(DataSource)));
If(!IsBlank(var_ItemID), FormMode.Edit, FormMode.New)
var_Item
Set(var_Submit,false);
// Submit the form
SubmitForm(Form1);
If(
Form1.Valid,
Set(
var_ItemID,
Form1.LastSubmit.ID
);
Set(
var_ItemLink,
"https://apps.powerapps.com/play/{AppID}?tenantId={TenantID}&ID="&var_ItemID
);
Office365Outlook.SendEmailV2(
User().Email,
"Draft Saved Successfully",
"Hello, your draft has been saved successfully. Click the link below to edit your draft: " & "<a href='" & var_ItemLink & "'>Edit Your Draft</a>",
{IsHtml: true}
);
Notify(
"Draft saved and email sent successfully.",
NotificationType.Success
)
);
ResetForm(Form1);
This was working fine in the morning; it was sending the email, and when the end user clicked on it, the app was opening the form in edit mode with the user-provided details.
Problem =
Please help me out. If I am missing something or what. I stucked here. Please suggest me what I can work with!
Thanks in advance!

Report
All responses (
Answers (