Sending user metadata in email trigger


(Mitch Kerry) #1

v5.2.7.2

Hi

I want to be able to send metadata to a user when it’s created (using an asset builder) via a trigger.
I’m able to send the attributes (first name etc) but cannot send any metadata on the user in the email.

I’ve tried to no avail in the body of the email:

%asset_metadata_onboarding.office%
%globals_asset_metadata_onboarding.office%
%globals_user_metadata_onboarding.office%
%asset_assetid^as_asset:asset_metadata_onboarding.office%
%asset_assetid^as_asset:user_metadata_onboarding.office%
%asset_assetid^as_asset:globals_asset_metadata_onboarding.office%
%asset_assetid^as_asset:globals_user_metadata_onboarding.office%

%globals_user_attribute_first_name% %globals_user_attribute_last_name% works.

Appreciate any help.
Mitch


(Bart Banda) #2

So you are trying to add the newly created user’s metadata values to an email generated by a trigger that fires on asset created?

If so, firing it on asset created will be too early. At that point it will not have any metadata field values set yet as the backend process will be first to create the asset, then set the metadata.

Try firing your trigger after the metadata has been set instead.


(Mitch Kerry) #3

Thanks Bart

That makes sense.
I’ll give that a try.