Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Service Order Posting Date - how to default to None?

Posted on by 22
Hi,
 
We are implementing the service order module for a customer for the first time and have run into a problem.
 
When a service order is created, the Posting Date field is set to the working date. We do not want that, we want that the Posting Date field is left blank.
 
How can we achieve this?
 
Thanks
 
Jim
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    Service Order Posting Date - how to default to None?
    Hi, this is a standard feature in Sales and Purchase. It is recommended to submit this idea to Microsoft.
    Missing a feature? Post or vote for ideas on: aka.ms/BCIdeas
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Saurav.Dhyani Profile Picture
    Saurav.Dhyani 17,965 Super User 2024 Season 2 on at
    Service Order Posting Date - how to default to None?
    Hi,
     
    Your developer can subscribe to event - OnAfterInitRecord from Service Header Table.
     
    This event will allow them to reset fields like posting date when new Service Documents are created.
     
     
     
    Regards,
    Saurav Dhyani
  • Netjacker2097 Profile Picture
    Netjacker2097 263 on at
    Service Order Posting Date - how to default to None?
    Hi,
     
    you can extend your page and add this code:
     
        trigger OnAfterGetRecord()
        begin
     
            begin
                rec."Posting Date" := WorkDate;
                CurrPage.Update;
            end;
        end;
     
        trigger OnClosePage()
        begin
            begin
                Commit();
            end;
        end;
  • Jim Oskarsson Profile Picture
    Jim Oskarsson 22 on at
    Service Order Posting Date - how to default to None?
    Thanks Valentin,
     
    Much appreciated 👍.
     
    Jim
  • Verified answer
    Valentin Castravet Profile Picture
    Valentin Castravet 24,816 Super User 2024 Season 2 on at
    Service Order Posting Date - how to default to None?
    It's not possible out of the box. The system always defaults the posting date as the working date. You can either get a developer to change the service order so it doesn't auto populate the posting date, or make it a requirement for the user populating the service order to enter the correct date.
     

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans