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..
Thanks for reply Mohit. It worked for me
Thanks Mariano. It worked
Hi Ameen, If you still face any issue, you can check this article. Its explained in detail about running custom scripts in production.
Thank you so much for your valuable reply. I will try the same.
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
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
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
André Arnaud de Cal...
291,996
Super User 2025 Season 1
Martin Dráb
230,853
Most Valuable Professional
nmaenpaa
101,156