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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Script to Update the text field in production

(0) ShareShare
ReportReport
Posted on by

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 the same question (0)
  • Verified answer
    Mariano Gracia Profile Picture
    on at

    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

  • Ameen1623 Profile Picture
    on at

    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

  • Verified answer
    Mariano Gracia Profile Picture
    on at

    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

  • Ameen1623 Profile Picture
    on at

    Thank you so much for your valuable reply. I will try the same.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,565 Moderator on at

    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/.../

  • Suggested answer
    Ameen1623 Profile Picture
    on at

    Thanks Mariano. It worked

  • Suggested answer
    Ameen1623 Profile Picture
    on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans