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, ...
Suggested Answer

How to migrate modified methods of class, form, table, view and query from Ax2012 to Dynamics 365.

(0) ShareShare
ReportReport
Posted on by

Hi Team,

  How to migrate modified methods of class, form, table, view and query from Ax2012 to Dynamics 365.

Ex: Below is the existing method

public void Addition()
{
 int a;
 int b;
 int c;
 c=a+b;
}

Below is the existing modified method

public int Addition()
{
 int a;
 int b;
 int c;
 c=a+b;

return c;
}

Could you please help me to migrate modified methods.

Thanks in advance

Phani

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,162 Moderator on at

    Is this "addition" method something that you wrote? Or is it a standard Microsoft method, and your customization changed the return type of that method?

    You can upgrade your own code to D365 via code upgrade tool in LCS. Your code that is changing Microsoft objects must be refactored into extensions. You can't change return types of standard Microsoft methods via extension. But there could be another way to solve your business requirement (which we don't know).

  • atajjo Profile Picture
    509 on at

    First of all, what's the point of the first method? the local variable 'c' will not exist after the method ends.

    If you want to know how to extend in D365 you should visit extensibility home page

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans