Skip to main content

Notifications

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 62

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

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

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

    Thanks,

    Girish S.

  • Suggested answer
    TNGrizzly Profile Picture
    TNGrizzly 62 on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

    thanks GirishS

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

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

    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.

  • TNGrizzly Profile Picture
    TNGrizzly 62 on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

    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
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

    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
    TNGrizzly 62 on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

    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.

  • TNGrizzly Profile Picture
    TNGrizzly 62 on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

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

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

    Hi Hatem SAOUDI,

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

    Can you elaborate.

    Thanks,

    Girish S.

  • Martin Dráb Profile Picture
    Martin Dráb 230,853 Most Valuable Professional on at
    RE: Unable to retrieve record ID when form is opened from view using "view details" feature

    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?

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,996 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,853 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans