web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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,635 Super User 2026 Season 1 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,833 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
    238,828 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 517 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 440

#3
Adis Profile Picture

Adis 266 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans