I am working with Web 8 on SDL Cloud and DXA 1.4.
I have created a C# TBB and using it in a Component Template associated with a multimedia Component. This TBB inserts/updates a value in multimedia Component metadata and saves the Component as well.
The behavior that I am getting, is that while I try to Preview in CME or run through Template Builder, the metadata of the Component got updated; however, if I try to publish the Component, the metadata value of the Component does not update in CME.
I verified that publishing is happening successfully with the relevant Template.
NOTE: I know the associated issues with adding custom meta dynamically while publishing to broker - I am here mentioning the issue related to a metadata field update in the Component in CMS.