Hi there!
I’ve built a Zap that takes Typeform responses as a trigger and then, based on the content of the responses, creates Asana tasks with different descriptions, assignees, due dates, followers/collaborators, etc. One piece of this that I’m getting stuck on, though, has to do with the “Find User in Asana” action in Zapier.
I’m going to spell out a lot of written detail here, but feel free to skip to the end of this post to see the TL;DR version of my question.
Background/Context:
In the aforementioned Typeform, we have users enter their email address. Immediately after the Typeform trigger in our Zap, we’re using the “Find User in Asana” action so we can use that info to automatically add the person who submitted the Typeform as a follower/collaborator on the Asana task when it’s created. I have “Should this step be considered a ‘success’ when nothing is found?” set to “Yes/true” so that the rest of the Zap will continue even if a user match isn’t found.
However, because we’re using the data from the “Find User in Asana” step to automatically add any match as a follower/collaborator to an Asana task - if no match is found in the “Find User in Asana” action, that step returns an error message (The app returned `{"message":"user: Not a recognized ID: example@example.com) and then the subsequent Asana task creation steps are skipped entirely.
- My first attempt at resolving this was building different paths - one for if an Asana ID exists after the “Find User in Asana” action (in which case it should proceed to generate the Asana task with the submitter added as a follower/collaborator), and another for if an Asana ID doesn’t exist (in which case it should create the task, but not attempt to add the person as a follower/collaborator). This attempt didn’t work either, for similar reasons - because it seems that when the “Find User in Asana” action fails to find a match, it will skip any step or path that wants to use any of its information for branching or task execution.
- My other attempt was trying a very similar idea, but instead using the “Zap Search Was Found” property of the “Find User in Asana” action to control the branching - one path for “true” and another for “false”. I thought this approach might work due to the earlier settings I mentioned (specifically, the “Should this step be considered a ‘success’ when nothing is found?” being set to “Yes/true”) and because the instructions listed next to that particular setting in Zapier say “If true, we will consider a ‘not found’ result from this search step as a "success" and will always run subsequent Filter or Paths steps, allowing them to branch on whether or not the search returned a result.” I still ran into the same result, though - neither path ran because they were trying to use info from the “Find User in Asana” action/step that failed to find a matching user.
Summary/TL;DR:
So with all of those details outlined, here’s a shortened version of my question: When using the “Find User in Asana” action, how can I set up subsequent paths/branches of the Zap to run specifically when the “Find User in Asana” action fails to find a match? I want to run one path if there is a match, and a different path if there isn’t. Is that even possible, or did I misunderstand something?
I should clarify here that these Zaps work as intended when a user is found in Asana - it’s just when no match is found that I’m having issues.
I have some other ideas I’m happy to outline, too, but I wanted to see if I get any responses here first. I’m moderately experienced with Zapier but definitely not a power user, so I’m hoping there’s a simple way to achieve this that I’m just overlooking.
Thank you in advance for any help or suggestions you can provide!