My flow creates a new task with an action object. This task is related to a certain contract. I want to get a task id that was created and if its status is completed then change the contract status.
I faced the problem that the flow couldn't find the newly created task record. It sent an error "The flow failed to access the value for "task.Id" because it hasn't been set or assigned" (Salesforce Error ID: 1424994209-82632).
May you face such an issue? I appreciate any help and ideas.
I attached some screenshots below.
5 respostas
I could find a record id finally. The problem was in format of task.createdDate - it is DateTime, not Date as Flow.CurrentDate.
But the second part of the task - " if the task status is completed then change the contract status" - is left unresolved. I tried to use Pause to wait when the task would be completed, but in this case, I would have to pause the flow to 1 minute, get necessary record, and then pause it again and loop this process.
Maybe you have a better solution. I can't use a process builder for this purpose, because I have no available process.
@Jonathan Fox
Unfortunately, I have a limit up to 5 processes and they have already been used.
@Om Prakash
I also expected that this option would be, but it wasn't. I attached the screenshot.