Print this page

Process fails when Task is created via Salesforce for Outlook

Knowledge Article Number 000220428
Description A Process for Task create that references the Task.WhatId is failing when you add an email via Salesforce for Outlook that creates a Task.

The error may be similar to: The flow failed to access the value for myVariable_current.Account.Id because it hasn't been set or assigned.

Example: 
  1. Create a Process on Task Create
  2. Enter criteria
  3. Do a field update: Related To ID gets assigned [Task].AccountId
  4. Add an email via SFO that creates a Task
  5. Receive error
Resolution With Salesforce for Outlook, associations are completed after the Task is created, so the Task.WhoId and Task.WhatId fields aren’t immediately available for insert and update events, and their values are initially null. The WhoId and WhatId fields are set on the saved task record in a subsequent operation, however, so their values can be retrieved later. This is why on Create, via SFO, the Process is failing. 




promote demote