Hello.
I’m experiencing the same issue as this topic:
But the go around is a little over my head. Using the same Typeform triggers, I have removed the default Find User step and added a step for Code (Run Javascript -> in Input Data, I entered “EMAIL” with the dynamic insert data from the Typeform, and the API_KEY works fine, too -> I copied and pasted the Code from the original post).
let API_KEY = inputData.API_KEY;
let EMAIL = inputData.EMAIL;
let response = await fetch(`https://app.asana.com/api/1.0/users/${EMAIL}`, {
headers: {
'Authorization': `Bearer ${API_KEY}`,
'Accept': 'application/json'
}
});
let result = "";
let match = "";
if (!response.ok) {
result = "ERROR: NOT FOUND";
match = false;
}
if (response.ok) {
result = await response.json();
match = true;
}
output = {EMAIL, API_KEY, match, result}];
I added the Filter step -> I put Continue if Match contains “false” OR Continue if Match contains “true”.
From here, I’m a little lost.
Is there a way to have the single Zap filter for both responses? Or do I have to make two separate Zaps for one where it succeeds and returns the user ID and another where fails and therefore doesn’t return the user ID?
I’m a novice in many ways and I feel like I’m close, but not quite there. Please help. Be gentle.