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
Great! Correction in my previous reply, its not the caller record - It will be the lookup record.
Thanks,
Girish S.
thanks GirishS
I find it in the "element.args().lookupValue()" method
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,
Girish S.
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
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.
Thanks,
Girish S.
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.
I mean when it's opened from another form or any View in D365
Hi Hatem SAOUDI,
What do you mean by "when a form is opened from a view"?
Can you elaborate.
Thanks,
Girish S.
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?
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156