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, ...
Answered

Grab info from the @this

(0) ShareShare
ReportReport
Posted on by 313

Does anyone know how I can grab the info from SalesLine in the method I'm currently in?

pastedimage1682449552727v1.png

I have the same question (0)
  • Anton Venter Profile Picture
    20,345 Super User 2025 Season 2 on at

    What is the access level of the salesLine variable in the class? Is it private? Is there a a parm method or other method to return the salesLine variable? If it's private, you can add your own method to return and use that to get a reference to salesLine variable.


  • GirishS Profile Picture
    27,827 Moderator on at

    Hi Andrew,

    Are you asking how to copy all the values of "this" object from watch window?

    If yes, then right click and select "Copy" or "Copy values".

    Thanks,

    Girish S.

  • Verified answer
    Martin Dráb Profile Picture
    237,795 Most Valuable Professional on at

    It doesn't have any access modifier, therefore it's protected and you can access it simply by name. But you need to extend the right class.

    salesLine variable is declared in AMDeviceProcessToDevice_SalesLine class, not in AMDeviceProcessToDevice.

  • Andrew Huisman Profile Picture
    313 on at

    Thank you very much Martin.  I have been working for about a week trying to figure out how to update AMDeviceTableMaster but needed info from the SalesLine and I could not find the right place to get a hold of everything.  That class you mentioned above was perfect.  I made an extension and now it's working.

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