Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

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

Posted on by Microsoft Employee

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
    atajjo 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
    nmaenpaa 101,156 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans