web
You’re offline. This is a read only version of the page.
close
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

Unable to retrieve record ID when form is opened from view using "view details" feature

(0) ShareShare
ReportReport
Posted on by 66

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

I have the same question (0)
  • Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    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?

  • GirishS Profile Picture
    27,827 Moderator on at

    Hi Hatem SAOUDI,

    What do you mean by "when a form is opened from a view"?

    Can you elaborate.

    Thanks,

    Girish S.

  • TNGrizzly Profile Picture
    66 on at

    I mean when it's opened from another form or any View in D365

  • TNGrizzly Profile Picture
    66 on at

    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.

  • GirishS Profile Picture
    27,827 Moderator on at

    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.

  • TNGrizzly Profile Picture
    66 on at

    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

  • GirishS Profile Picture
    27,827 Moderator on at

    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.

  • Suggested answer
    TNGrizzly Profile Picture
    66 on at

    thanks GirishS

    I find it in the "element.args().lookupValue()" method

  • GirishS Profile Picture
    27,827 Moderator on at

    Great! Correction in my previous reply, its not the caller record - It will be the lookup record.

    Thanks,

    Girish S.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 663 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 540 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 348 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans