Notifications
Announcements
No record found.
Dear all,
I have a Production environment with custom code deployed with multiple custom models.
I want to just update a Text field in Free Text Invoice making Text = Description for few posted Free Text Invoices as the user forgot to update the Text field when importing line from Data Management.
So do I have to package the Custom X++ Script with All-in-One Package consisting of Entire Source Code. Or I can create this package from a separate Development Environment with Only 1 model and 1 class as mentioned in this Microsoft Document.
Appreciate any tips..
I have used the custom script a few times as Microsoft explains in the docs, it works, a good option when you don't have alternatives. Create a new model with a single class with the code in the main method, take notice that if you have made a mistake, you'll need to write a new class in a new model, if you upload again the same model but with the class modified a warning message is shown explaining that the original class will be used (it won't overwrite the class). Of course, test it in a UAT environment with the data refreshed from the production environment before executing in the production environment
Dear Mariano,
Thanks for your valuable reply. here my doubt is while creating the package do I need to include all the custom models or only selecting the script model is enough? can you please help me in this regard.
Thanks in advance.
Ameen
No, you must only include the newly created model for this purpose and upload it to the custom script form that you'll find in Dynamics 365 FO
Thank you so much for your valuable reply. I will try the same.
Hi Ameen, If you still face any issue, you can check this article. Its explained in detail about running custom scripts in production.
dynamics365musings.com/.../
Thanks Mariano. It worked
Thanks for reply Mohit. It worked for me
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 664 Most Valuable Professional
André Arnaud de Cal... 522 Super User 2025 Season 2
Sohaib Cheema 303 User Group Leader