web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Values are not saved in RouteInventProd form in d365FO

(3) ShareShare
ReportReport
Posted on by 152

Hello All,

I have added a new real field in ProdRoute and RouteOpr table, and added the field in the RouteInventProd form, However the values are not getting saved or reseting whenever the form is closed and opened again.

I was able to see there's a class called RouteInventForm has a method which is running in the init of routeInventProd form where it is deleting the prodRoute records and again inserting as the new field is not added in the map I am not getting the value. Is there a way to achieve this?

Categories:
  • SachinMittal Profile Picture
    152 on at
    can someone help ??
  • Suggested answer
    Waed Ayyad Profile Picture
    9,222 Super User 2026 Season 2 on at
    Hi,
     
    You should reinsert the new custom field at the end of the init of the form, you can do it using the extension COC, add your code after the call to the next method. You can't add your field to the map using the extension.
     
    [ExtensionOf(formStr(FormName))]
    final class FormName_Form_Extension
    {
        public void init()
        {
            next init();
    
            //customize code goes here
    
        }
    }
     
    Thanks,
    Waed Ayyad
    If this helped, please mark it as "Verified" for others facing the same issue
     
  • Layan Jwei Profile Picture
    8,421 Super User 2026 Season 2 on at
    Hi, 
     
    If you are saying there is a map, then maybe this means that u need to add the field to the map
  • Waed Ayyad Profile Picture
    9,222 Super User 2026 Season 2 on at
    Hi,

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

    Thanks
    Waed Ayyad

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 539 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 366 Super User 2026 Season 2

#3
CU-1234529-002 Profile Picture

CU-1234529-002 197

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans