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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Not able to update Sales order Status in Business Central

(1) ShareShare
ReportReport
Posted on by 163
Hi All,

We are using On-Prem Business Central.

I have created on action menu under the Action as Update Order status,  and it is working fine when i am tried to update the status for any sales order. But when i change the company and then i tried to update the status i am getting below error. 


code : 
Rec.Status := Rec.Status::"Pending Approval";
Rec.Modify(true);
I am not able to figure out why this issue occur for other company.
Does any only have any idea, please share with me.

Thanks for your response.
 
I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    22,098 Super User 2026 Season 1 on at
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,801 Super User 2026 Season 1 on at
     
    You need to add CurrPage.Update() before your code.
    CurrPage.Update();
    Rec.Status := Rec.Status::"Pending Approval";
    Rec.Modify(true);
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Yi Yong Profile Picture
    2,645 Super User 2026 Season 1 on at
    Hello,
     
    Try adding in "CurrPage.Update()" after Rec.Modify(true).

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,804 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,103 Super User 2026 Season 1

#3
Kamal Khakhkhar Profile Picture

Kamal Khakhkhar 695

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans