Trigger to change User Defined design


(Sang) #1

Matrix Version:5.4.3.0

Hi,

If user updates metadata of event asset, trigger needs to change its User Defined design of the asset.

What I did is

Event -> After Asset Metadata Updated
Condition -> 1. Tree Location
             2. Asset is type of : Single Calendar Event
             3. Metadata Field Updated: tempateid
Action -> Set Design
          Ignore Permission, Non-Critical
          Design : Empty
          Override Design: Empty
          Design Type: User Defined Design
          User Defined Design Code: override_design
          Dynamic Parameters: Design : Set Value = %globals_asset_metadata_templateid%

This does not work.

If I added another action

Action -> Set Metadata Value
          Metadata Field: templateid2
          Value: Empty
          Dynamic Parameters: Metadata Field Value : Set Value = %globals_asset_metadata_templateid%

This changing metadata value is working fine.

Both actions are updating with same value, but updating metadata value is working and updating design is not working. Is there anything I missed?


(Bart Banda) #2

Try and use %asset_metadata_templateid% instead of globals.


(Sang) #3

%asset_metadata_templateid% is not working as well.

Maybe setting design from trigger is not working?


(Bart Banda) #4

It should work. Does the trigger action actually run? What do you get in the logs?