You need to sign in to do that
Don't have an account?
Peter MacEwan 10
Salesforce for Outlook and Trigger
We have set-up Salesforce for Outlook to create activity records of the email type on the contact standard object.
We have also written an Apex Trigger to create records on a separate custom object when new activities of the email type are created on the contact standard object.
Each of these actions work independently when tested but when we attempt to use them together we are receiving an error message (in the Outlook sidebar). Salesforce for Outlook will not create the activities when the trigger is installed.
Any guidance in problem-solving this issue is greatly appreciated.
We have also written an Apex Trigger to create records on a separate custom object when new activities of the email type are created on the contact standard object.
Each of these actions work independently when tested but when we attempt to use them together we are receiving an error message (in the Outlook sidebar). Salesforce for Outlook will not create the activities when the trigger is installed.
Any guidance in problem-solving this issue is greatly appreciated.
The error message reads: "We couldn't add this item. Please try adding this item again." The error message appears in the Outlook sidebar
Setting debug logs:
https://help.salesforce.com/HTViewHelpDoc?id=code_viewing_log_details.htm&language=en_US
Wierd. Why have all my comments been deleted?!?
Well, in case anyone wants to know what our solution was, the problem was I wasn't getting the emails properly from "Salesforce For Outlook". This is because the way an email is formatted for an Activity/Task differently whether you're sending the email directly out of SFDC vs and email sent through Outlook. All the development I was doing was using the "direct from SFDC" and it was working. But the problem is, when the users tried "Salesforce For Outlook", I wasn't parsing out the emails properly. So this line of code was resulting in a null:
Which then in turn made this line blow up: