Notifications
Announcements
No record found.
Hi all,I am having trouble retrieving the ID of a record when a form is opened from a view using the "view details" feature in Microsoft Dynamics 365 Finance and Operations.I have tried using the Args class.I am not sure what else to try at this point. Can anyone suggest a solution or point me in the right direction?Thank you in advance for your help.Best regards,Hatem
Can you give us more information, please? For example, how did you try to use Args and what did you find when you tried it?
Hi Hatem SAOUDI,
What do you mean by "when a form is opened from a view"?
Can you elaborate.
Thanks,
Girish S.
I mean when it's opened from another form or any View in D365
when I try to get the Id of the record to display using the view details the args of the form is empty no record or parm is set in it.
Is this a standard or custom form?
Also, when clicking view details its open the with caller record or showing all the records?
From my understanding I guess if the view details form is simple details form it will open that form with mouse pointer placed on the particular records. So, I guess you won't get the caller record when it's opened from view details.
I am not sure with above, but please share us the code you have written for getting the record using args.
GirishS My question is how the view details send the id of the record to display to the form that's going to open
thak u
On the args check whether you are getting value for lookup record.
I guess the value of lookup record will be the caller record.
thanks GirishS
I find it in the "element.args().lookupValue()" method
Great! Correction in my previous reply, its not the caller record - It will be the lookup record.
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.
Martin Dráb 663 Most Valuable Professional
André Arnaud de Cal... 540 Super User 2025 Season 2
Sohaib Cheema 348 User Group Leader