Workflow E-mail notifications not showing expected values

Hello, I'm new to M-files and I just created my first workflow for contracts.

Contract review, 1st Review and 2nd Review create separate assignments for users defined on the metadata card. However, not all contracts have a reviewer or 2nd reviewer, so I created steps that check if these fields are filled. If they are empty, the steps are skipped. The workflow functions as expected, but email notifications are not working correctly. I'm receiving emails from the M-Files server, and the comments are not included in the emails. Any help would be greatly appreciated.

  • Comments are a bit tricky since they are version-specific: if the latest version of the object doesn't contain a comment when the notification is dispatched, the email won't include any comment (ie. the comment property is empty for that version).

    If you want to always include the latest comment left to the object in the notification, you can store it to a separate property on the metadata card (e.g. "Latest comment") and fill that automatically with Compliance Kit's Managed Properties module, then include that property in the notification message.

    Example rule for Managed Properties:

    If you need all the comments on the object included in the notification, there's an alternative scripting approach described in the support article Adding comments to the metadata card in M-Files (VBScript).