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

Changing Custom Field Value on change if Reserve quantity has value

(0) ShareShare
ReportReport
Posted on by 238
Dear Experts 
 
I want change custom field value based on the Reseve Quantity on Sales order at line Level when Reserve quantity has value then custom option field in line level should have value as EX STOCK 
 
as field is flow filed code not work on on validate and on lookup of reserve quantity field 
 modify(/Reserved Quantity/)
        {
            trigger OnAfterValidate()
            begin
                Rec.CalcFields(/Reserved Quantity/);
                if Rec./Reserved Quantity/ <> 0 then
                    Rec./Stock Type/ := /Stock Type/::/Ex Stock/;
 
            end;
        }
How i can achieve same thanks in advance 
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    98,062 Super User 2026 Season 1 on at
    Hi, as you might know, flowfields do not trigger onModify event. But FlowFields are calculated based on information in another table. You can update fields in your table when other tables meet the conditions.
     
    Hope this can give you some hints.
    Thanks.
    ZHU
     
  • DineshM Profile Picture
    238 on at
    @YUN ZHU sir 
    I am not able to get how to achive same can you please explain how i can do same. not geeting how to do it.
     
     
     

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 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans