function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dmitry Chernik 6Dmitry Chernik 6 

Triggered send with Marketing Cloud

Hi Community

We are working on a triggered send logic for Opportunity object. We are doing this in the Salesforce Marketing Cloud connector. 
According to the Marketing Cloud documentation we added the foolowing trigger for Opportunity object.
 
Trig_Opportunity on Opportunity (after insert, after update) 
{ 
    et4ae5.triggerUtility.automate('Object Name'); 
}
Once we added this trigger we are getting the following error when create new opportunity record.
>> Developer script exception : Trig_Opportunity : Trig_Opportunity: execution of BeforeInsert caused by: System.NullPointerException: Attempt to de-reference a null object (et4ae5)

Does anyone know how to fix this issue? 

Thanks in advance.
 
SF ITSF IT
Use this:
 
Trig_Opportunity on Opportunity (after insert, after update) { et4ae5.triggerUtility.automate('Opportunity'); }

 
Dmitry Chernik 6Dmitry Chernik 6
Of course we use sObject Api Name (Opportunity) instead of 'Object Name'
et4ae5.triggerUtility.automate('Opportunity');
Ginny MahantGinny Mahant
It is treating 'et4ae5' as an object instance, hence the error.Looking at your code et4ae5 is the name of a public utility class ?
Afaque daniyalAfaque daniyal
 Hi I am having the same probelm, I am getting an error when saving triggered send from salescloud. 
Getting below error:
Visualforce Error
Help for this Page
et4ae5.TokenException.FailureToRetrieveTokenException: expired access/refresh token
Error is in expression '{!automationSave}' in page et4ae5:sendautomation: (et4ae5)

Please somebody help me on this