Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Workflow Notification link is not opening currently selected record.

(0) ShareShare
ReportReport
Posted on by 167

PTO-Request.png

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.

  • Suggested answer
    Ramit Paul Profile Picture
    22,375 Most Valuable Professional on at
    RE: Workflow Notification link is not opening currently selected record.

    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.

  • BADRI NARAYANAN G Profile Picture
    167 on at
    RE: Workflow Notification link is not opening currently selected record.

    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

  • Suggested answer
    Komi Siabi Profile Picture
    12,772 Most Valuable Professional on at
    RE: Workflow Notification link is not opening currently selected record.

    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

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.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,916 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,782 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans