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 :
Business Central forum

Store Flowfield values

(0) ShareShare
ReportReport
Posted on by 75

Hi guys, a question about Flowfield.

Right now i have a flowfield that lookup the sales line unit price. However, after i post the sales order, the sales line will be empty as well as the flowfield. What i want to do is to keep the unit price in place and do some calculation on it. Is there anyway to do it? 

Thanks a lot

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    A flowfield is a calculation (query) performed at runtime and related to a record. I don't know the details of what you want to do but I think that you need to store the unit price value on a global variable during posting (or on a record field) and then do calculations accordingly.

  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,306 Super User 2026 Season 1 on at

    You can't use flowfield for that because there is no value in flowfield. It is calculated automatically when you run it.

    What you can do is to copy that flowfield value to a normal field when posting the document.

  • Bigbigapple Profile Picture
    75 on at

    Thanks Teddy! I think this is the way to go. But how could we modify the existing posting procedure to copy that value, in other word, where should I put that code? Thanks!

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Use event subscribers and attach to events exposed by the posting routine. You can use Event Recorder in order to inspect the raised events.

  • Bigbigapple Profile Picture
    75 on at

    Thanks Stefano. What I want to do is - when releasing the document - copy the unit price on the sales line to another table, or modify it if already exist. I think I will need to modify the existing releasing procedure. Is that possible to add code to the existing releasing action?

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans