You need to sign in to do that
Don't have an account?
jaw999
Events added via Outlook and WhatId fields
I have a trigger to feed to Chatter Event activities. It predates Salesforce's chattering of activites and I'd like to keep it.
It works when I use the manual web interface. Upon investigating debugs now the
The WhatId is blank during the trigger run but when I pull the event later in the Excel Connector, the WhatId is not blank - it has been associated.
The trigger runs after insert and associates via the field WhatId - what I need to use. AccountId field is also blank during the trigger run.
Any suggestions?
Do I need to run a batch after this, later than the 'after insert"?
How can the event be inserted and associated but return a null WhatId?
It works when I use the manual web interface. Upon investigating debugs now the
The WhatId is blank during the trigger run but when I pull the event later in the Excel Connector, the WhatId is not blank - it has been associated.
The trigger runs after insert and associates via the field WhatId - what I need to use. AccountId field is also blank during the trigger run.
Any suggestions?
Do I need to run a batch after this, later than the 'after insert"?
How can the event be inserted and associated but return a null WhatId?
Looks like this issue was addressed over the below threads,
The workaround I implemented was to have the trigger check to see if WhoId and WhatId were both NULL. If so, the trigger would pass the task Ids to an @future method that would then check to see if WhoId or WhatId was populated.
http://salesforce.stackexchange.com/questions/24194/trigger-off-event-added-via-outlook-side-panel
&
https://developer.salesforce.com/forums?id=906F000000095HTIAY
Regards,
Ashish