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

How to add a new parameter in class method through COC

(1) ShareShare
ReportReport
Posted on by 670
Hi Folks,
 
I have extended a standard public static method of a table and trying to add a new parameter in the method.
 
Could you please let me know how can I do that? As if I m trying to do it is giving error. 
 
 
Thanks in Advance!!
I have the same question (0)
  • Verified answer
    Waed Ayyad Profile Picture
    9,047 Super User 2025 Season 2 on at
    Hi,
     
    You can't do it using COC, you can read more about it in the following blog:
    https://community.dynamics.com/blogs/post/?postid=fabe0a17-a9f6-4223-9090-0d9643a5ffd0
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Verified answer
    Martin Dráb Profile Picture
    238,149 Most Valuable Professional on at
    This is impossible - you need to find a better design.
     
    In fact, you don't really need to add a parameter there, because this new parameter wouldn't be populated by any standard code (and you couldn't change that). You could use from your code only, but then you don't need an extension of a standard method. You can create your own method with the extra parameter, do whatever you want with the parameter and call the standard method with standard parameters.
  • Layan Jwei Profile Picture
    8,133 Super User 2025 Season 2 on at
    Hi,
     
    You can't add a new parameter to an existing standard method. It's either you create ur own method or use a new variable inside the method.
     
    Can you tell us your business scenario and why u think u need a new parameter?
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future
  • Waed Ayyad Profile Picture
    9,047 Super User 2025 Season 2 on at
    Hi,

    Is your issue resolved?  If yes, mark the answers that helped you as verified.

    Thanks
    Waed Ayyad
  • D365FO Avatar Profile Picture
    670 on at
    Thanks Martin Dráb  and Waed Ayyad for the quick help. 
     
    I m trying to mark the answer as verified but every time the portal is hanging and it is not working. Please suggest me how this issue can be solved if you have any idea.
     
  • Martin Dráb Profile Picture
    238,149 Most Valuable Professional on at
    Unfortunately, it's a well-known bug that still hasn't been fixed. I don't know if it helps to increase the priority, but you may try to complain through Community support or Community feedback.
     
    But if you tell me which reply or replies you want to verify as the answer, I can try to do it on your behalf. It often (but not always) works for me.
  • Waed Ayyad Profile Picture
    9,047 Super User 2025 Season 2 on at
    Hi,
     
    Yes, this issue is still happening; maybe the moderators can verify the answers.

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 732 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 289 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans