Is there a way of getting make to create one? i wondered if i should use a filter, and where the contactid or name doesn’t exist then create one. but i haven’t had much luck.
could anyone point me in the right direction please .
That’s what the error directive Resume allows you to do. First, you use a Search module to see if it exists, then Create a new item if it doesn’t exist. In the Create field, you use an if-statement to “ignore” a required field if there are search results, throwing an error and allowing you to “skip” the creation module.
Here, in this example, I’m using Notion, but you can apply the same concept to any integration that has a Search module.
The if (not-exist-create-ignore) throws the error (ignore if exists), which the Resume directive can be used to return the item from the Search module (to check if it exists).
Just in case anyone follows this thread at a later date, I found the answer.
After the trigger happens, i do a Search Xero module. Which comes up empty if the contact doesnt exist. But then I add a router with two paths. 1 filters where the condition is:
Basic Operators: Exists
If this condition isn’t met, then the other path is taken, where it creates a new Contact.