How to Add a Custom Property to a Service Bus Message in Dynamics 365 Finance and Operations

By Chris Bagge | June 5, 2023

When you raise an event in Dynamics 365 Finance and Operations a record inserts into the BusinessEventsCommitLog table. This table has a column called SerializedFilterProperties.

This column holds the name-value pair of the custom properties you want to add to the Service bus message. The way to add properties is by using a specific data attribute on a parm method of the contract class

That data attribute is BusinessEventsFilterDataMemberAttribute.

For instance:

    public str parmFolderPath(str _folderPath = folderPath)
    {
        if (!prmIsDefault(_folderPath)
        {
            folderPath = _folderPath;
        }
        return folderPath;
    }

Now if parmFolderPath were called with the value of ‘TEST’ the following JSON object would be added to the SerializedFilterProperties column once the event is raised.

{"FolderPath":"TEST"}

When you add properties to the Service bus message a property of name FolderPath with the value of TEST will be added along with the standard properties.

Want to Learn More About Dynamics 365 Finance and Operations Customization?

Please reach out to us! Stoneridge has a great team with immense knowledge about Dynamics 365 Finance and Operations. Our goal is to help you get the most out of your software solutions.

Related Posts

Start the Conversation

It’s our mission to help clients win. We’d love to talk to you about the right business solutions to help you achieve your goals.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!