Whitespaces in Marketing Cloud Connect's triggerUtility.automate command can prevent triggered send activation
Trailblazer Community

Whitespaces in Marketing Cloud Connect's triggerUtility.automate command can prevent triggered send activation

Marketing Cloud Integrations

Last updated 2021-01-15 ·Reference W-8721061 ·Reported By 0 users

No Fix

Summary
When using Triggered Sends with Marketing Cloud Connect, if the "triggerUtility.automate('{object name}');" or "triggerUtility.automateByName('{object name}');" commands contain a whitespace between the opening or closing parenthesis, activation of a trigger using that object would fail.

Repro
1. Integrate your Salesforce Org using the Marketing Cloud Connect managed package
2. Under the Marketing Cloud Settings in the package, make sure at least one object is available for triggered sends (ex. Contact)
3. Create a trigger for the object under setup, and add whitespace between the opening and/or closing parenthesis and the object name (ex. "et4ae5.triggerUtility.automate( 'Contact');" or et4ae5.triggerUtility.automate('Contact' );")
4. Activate the trigger
5. Create a new triggered send for the object and attempt to activate it
6. An error will be presented similar to "Before activating a triggered send the appropriate Apex Trigger must be created for the following object..."

Workaround
Remove any whitespaces and verify your trigger matches the triggerUtility.automate('{object name}'); format exactly.

Reported By (0)

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.