I have a custom preference center for a client with an ExactTarget account integrated with Salesforce. I have tried a couple of methods for unsubscribing a record through ampscript including the one discussed here:
However when using the InvokeUpdate approach I get the subscriber set to Unsubscribe in ExactTarget, but the HasOptedOutOfEmail flag in Salesforce is not automatically set and no Unsubscribe event is recorded in the Individual Email Results object in Salesforce -- I'm assuming beaosue no JobID is passed?
If I try the LogUnSubEvent approach and pass in a JobID I get this feedback:
Status: Subscriber not found on the specified send
Why doesn't ExactTarget find the subscriber on the JobId? I have noticed that email events (sent, Open, Click, Bounce, Unsubscribe) don't seem to be recorded in the ExactTarget Data Views for sends to Salesforce Reports and campaigns -- is this normal?
If I try the LogUnSubEvent and do not pass in the JobID I get the subscriber Unsubscribed in the All Subscribers list, but again no event info goes back to Salesforce for the Lead record.
Has anyone been able to create a custom unsubscribe option using ampscript that will mark a subscriber as Unsubscribe in ExactTarget and have the record of the Unsubscribe go back to the Salesforce Lead Record on the Individual Email Result Detail object? This is the behavior of the default ExactTarget Profile Center and what I feel should be possible via ampscript. Any ideas are welcome!