Notifications
Announcements
No record found.
I have workflow which is created to send notification email to the approver.The approver is set in dynamics application.Above is the personal timeoff request form where the record is submitted for workflow.The link is then sent to the approver after the workflow is submitted.The issue with the link is it is always opening the first record in the form and not opening the selected record during workflow submission.Is there a way to send a link which has the currently selected record in the form.As per the image the 4th record is the one selected but the link always opens the first one.I checked the logic in the init method it always fetches the first record since there is no caller form to fetch the currently selected data.How can we proceed on this?
Please help me on this issue.
Thanks.
Hello Badri,
Such issue had been addressed in here.
https://community.dynamics.com/365/financeandoperations/f/dynamics-365-for-finance-and-operations-forum/468387/workflow-form-redirect-shows-all-records/1286401
Hi Komi,
Thanks for your reply.
I tried the same method by putting logic in init method of details form but still it didnt work.I guess my requirement is a bit different.The link is sent to our email through workflow config and by submitting the details in the form.If we open the link from email there is no way it knows the caller form details so the value in element.args().record is empty,hence it is always fetching the first record in the form not the selected one.I tried to debug the code when form opens through the link in the email.This is the code which always triggers this piece of logic.Please help me on this issue.
if (element.args().menuItemName() == identifierStr(PMIPPTORequestDetails) && element.args().callerName() == "")
{
select firstonly RecId from localPMIPPersonalTimeOffRequest
where localPMIPPersonalTimeOffRequest.CurrentWorker == HcmWorkerLookup::currentWorker();
PMIPPersonalTimeOffRequest_ds.query().dataSourceTable(tableNum(PMIPPersonalTimeOffRequest)).addRange(fieldNum(PMIPPersonalTimeOffRequest, RecId)).value(queryValue(localPMIPPersonalTimeOffRequest.RecId));
}
Thank you
Badri
In some of the forms, this is by design.
You can raise a ticket to Ms to see if this is a bug or they have any plans to enhance.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 456 Super User 2025 Season 2
Martin Dráb 429 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional