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

Notifications

Announcements

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,829 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

News and Announcements

Season of Giving Solutions is Here!

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
Abhilash Warrier Profile Picture

Abhilash Warrier 763 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

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

#3
Martin Dráb Profile Picture

Martin Dráb 284 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans