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

passing parameter between two classes

(0) ShareShare
ReportReport
Posted on by 30

Hi Team,

I have two classes like class1 and Class 2

Class 1 - Extesion class of PurchLine

Class 2  - Class2 

So, from Class1 , I lke to send parameter of active record to Class 2.

I mean the PurchLine Recid to Class 2. ( Current record only)

Kindly let me know How will pass parameter from Class1 to Class 2

Pls give me more shed on this.

thanks!

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi,

    You can create one parm method on class 2.

    In class 1 which is extension class using instance of class 2 you can call the second class parm method by assigning purch table record to parm method.

    One more option will be calling the methods and on class 2 with arguments.

    Thanks,

    Girish S.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, I think you are trying to pass record from PurchLine table to a class. Is the class getting initialized in purchTable or is it used under a single scope like while inserting or updating record, you will pass the record to class and perform another operation in class?

    If it's not within single transaction/scope then park method will not work. If within single transaction then create and call parm method in class from table extension class.

  • @rp@n Profile Picture
    30 on at

    Thanks Mohit and Girish

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... 529 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 470

#3
Adis Profile Picture

Adis 270 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans