Skip to main content

Notifications

Announcements

No record found.

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

Work Descriptions in posted sales Invoice header

(1) ShareShare
ReportReport
Posted on by 271
Hi Guys,
 
i need to be able to edit the work descriptions on the posted sales invoice header.
i have tried giving the page permission rmid but still no luck.
 
can anyone surgest a way to do this?
 
Thanks
M
  • Netjacker2097 Profile Picture
    Netjacker2097 271 on at
    Work Descriptions in posted sales Invoice header
    @YUN ZHU,
     
    from your sample, i have now done what is needed, this is just the frist sample i did to get the blob text. will buid the OutSTream later. But thanks for your guidance :)
        local procedure ReadDescBLOB(): Text
        var
            TypeHelper: Codeunit "Type Helper";
            InStream: InStream;
        begin
            Rec.CalcFields("Work Description");
            Rec."Work Description".CreateInStream(InStream, TEXTENCODING::UTF8);
            exit(TypeHelper.ReadAsTextWithSeparator(InStream, TypeHelper.LFSeparator));
        end;
  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 75,561 Super User 2024 Season 2 on at
    Work Descriptions in posted sales Invoice header
    Hi, just adding some key points, hope it helps you too.
     
    Thanks.
    ZHU
  • Netjacker2097 Profile Picture
    Netjacker2097 271 on at
    Work Descriptions in posted sales Invoice header
    Thanks Guys, apriciate it. i will create a Codeunit to handle it.
    Will post later on what is built for code unit.
     
    Thanks Again.
    Michael.
  • Suggested answer
    Valentin Castravet Profile Picture
    Valentin Castravet 24,913 Super User 2024 Season 2 on at
    Work Descriptions in posted sales Invoice header
    Its not possible out of the box. Posted documents/entries are not allowed to be modified in Business Central. This is true system wide except for certain exceptions (several fields). This is done to maintain data integrity and have an audit trail. 
     
    In a posted sales invoice there is an Update Document button that does allow modifying several fields (the exceptions mentioned above) in the posted document. If you want to modify the work description a developer would have to customize the system to add the work description as one of the fields that can be modified when using this Update Document button. 
     
     
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 12,851 Most Valuable Professional on at
    Work Descriptions in posted sales Invoice header
    Hi
    You would have to make an adaptation to the standard functionality of editing registered documents.
    https://learn.microsoft.com/en-us/dynamics365/business-central/across-edit-posted-document?wt.mc_id=MVP_354389 
    You could rely on this:
    https://yzhums.com/24923/ 
    Pay attention that this field is a blob field.
    BR
    GR

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans