Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Change code in a Model developed by someone else does not take any effect

(0) ShareShare
ReportReport
Posted on by 113

Hello Guys,

i create a new model  in  my peoject,and  i  also  reference  the  model  which  i need to  modify,but  when i  directly   modify  code  in the reference model  class, it  could not  take  any effect.

as  the figure show.the  comment  can  also  be  executed,and  the error("test") can  not show  on the  screen.Could you  give me  some help?pastedimage1681264915221v1.png

  • Verified answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Change code in a Model developed by someone else does not take any effect

    If the answers are helpful, please mark it as verified so others can make use of this thread in the future.

    Thanks,

    Girish S.

  • Tracy wang Profile Picture
    Tracy wang 113 on at
    RE: Change code in a Model developed by someone else does not take any effect

    thank you,This is the perfect solution to my problem.

  • GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: Change code in a Model developed by someone else does not take any effect

    No need to select reference model - If you select referenced model, it will include standard model also. So, it will take time to build.

    Select only the model where the class "PurchTableButtonConfirm_SNF_FC_Extension" is present and select "Synchronize Database" check box under option tab.

    Thanks,

    Girish S.

  • Tracy wang Profile Picture
    Tracy wang 113 on at
    RE: Change code in a Model developed by someone else does not take any effect

    Hi  Girish,

    for  your  second suggestion,when  i  build the  model ,i  need to select  the reference model?right?

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: D365 Change code in a Model developed by someone else does not take any effect

    Hi Tracy wang,

    You need to have separate project for the reference model and add that class to that project - Build the project and then check.

    Otherwise use Extensions >> Dynamic 365 >> Build models - Select your custom model and build that.

    Thanks,

    Girish S.

  • Tracy wang Profile Picture
    Tracy wang 113 on at
    RE: D365 Change code in a Model developed by someone else does not take any effect

    Hi  Andrew,

    How do I build  the referenced  model、could you help me?

  • Suggested answer
    Andrew Xu Profile Picture
    Andrew Xu 3,877 on at
    RE: D365 Change code in a Model developed by someone else does not take any effect

    Hi Tracy,

    Please make sure the referenced model is also built after you made the change to it.

  • Tracy wang Profile Picture
    Tracy wang 113 on at
    RE: D365 Change code in a Model developed by someone else does not take any effect

    i  have   done  the  synch database,and  also  rebuild  the project

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,966 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans