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

  • atajjo Profile Picture
    509 on at
    RE: How to migrate modified methods of class, form, table, view and query from Ax2012 to Dynamics 365.

    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

  • Suggested answer
    nmaenpaa Profile Picture
    101,156 Moderator on at
    RE: How to migrate modified methods of class, form, table, view and query from Ax2012 to Dynamics 365.

    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).

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,884 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,758 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans