You can use flowfield in a calculated field… Rec.Nameofflowfield

You can get an if expression in… it’s rather weird, and the expression verifier won’t like it (But if correct, it should still publish just fine), go like this:

<if expression>? <true expression> : <false expression>

See here how: https://learn.microsoft.com/en-us/dynamics365/release-plan/2024wave2/smb/dynamics365-business-central/use-ternary-operator-when-coding-al-language

One Response

  1. It works great, thank you 🙂
    What I could not accomplish was to mark the font as red when my condition is true. It seems the StyleExpr cant be defined solely through my code snippet alone. I assume this is currently out of scope of the SOD?

Leave a Reply