Hi guys,
I have interesting problem. I have 4 forms in 4 screens. Its something like survey when you go throught this 4 pages and ask to question. After every screen I save it with SubmitForm. At the last screen when you click on on icon finish it should save again your procces on this screen and send automaticly emails to some persons(in my datas Name,Supervisor,Project Manager).
And the problem is that when I click to save and send it will save my data as you can see here
But sometimes it doesnt send email because suddenly the value NAME(where is value of email) is lost(here in the third picture you can see in Html text that name is not there, this also happens to two others email values - Project Manager and Supervisor) and then I cant send email. But when I go to detail screen(Preview) I can see that it is saved. So I dont understant where is the problem. Can anybody tell me what can be the problem?
Solved! Go to Solution.
I tried some things out and indeed putting the send email actions in the OnSuccess property before navigating did not the work when you reference the person picklists. There is another way to do this. Instead of referencing the picklist controls you can reference the LastSubmit property of the gallery. Something like this:
Office365.SendEmail(
EditForm1.LastSubmit.Person1.Email,
"Email1",
EditForm1.LastSubmit.ID
);
Office365.SendEmail(
EditForm1.LastSubmit.Person2.Email,
"Email2",
EditForm1.LastSubmit.ID
);
Office365.SendEmail(
EditForm1.LastSubmit.Person3.Email,
"Email3",
EditForm1.LastSubmit.ID
);
Back()
Tried it out and worked in all my test cases.
To be complete I also tried out your scenario several times putting the emailactions before the SubmitForm action. I had one case of a mail that was not send.
I you try out using the LastSubmit property, you could also speed things up a bit with the Concurrent function or even simply send one email to all recipients.
Let me know of this works for you.
I was trying to change order before but nothing happened. 😕
Yeah, it didnt help 😕
I tried some things out and indeed putting the send email actions in the OnSuccess property before navigating did not the work when you reference the person picklists. There is another way to do this. Instead of referencing the picklist controls you can reference the LastSubmit property of the gallery. Something like this:
Office365.SendEmail(
EditForm1.LastSubmit.Person1.Email,
"Email1",
EditForm1.LastSubmit.ID
);
Office365.SendEmail(
EditForm1.LastSubmit.Person2.Email,
"Email2",
EditForm1.LastSubmit.ID
);
Office365.SendEmail(
EditForm1.LastSubmit.Person3.Email,
"Email3",
EditForm1.LastSubmit.ID
);
Back()
Tried it out and worked in all my test cases.
To be complete I also tried out your scenario several times putting the emailactions before the SubmitForm action. I had one case of a mail that was not send.
I you try out using the LastSubmit property, you could also speed things up a bit with the Concurrent function or even simply send one email to all recipients.
Let me know of this works for you.
Thanks !! I think it works. Sometimes it doesnt send the whole email with all information. But I will try to fix it. But It sends a email so thats good.
If you keep having the issue that mails are not send you could also fallback to using Flow for sending the emails. Flow gives you log info about every run. That helps a lot to find out why an email is not send.
User | Count |
---|---|
260 | |
109 | |
93 | |
56 | |
41 |