As you read from previous conversation in this thread, I end up with creating 2 webhook trigger.
1 is triggered when I [create] a contact from other app. Thus leading to create google contact action
the other is triggered when I [save] a contact from other app. Thus leading to update google contact action.
It appears that the [save] trigger is always triggered, both from [create] (because after contact is <created>, it is <saved> to database). I plan to delete the [create] trigger using solution you offer below.
f your goal is to first search for a contact and then create or update it based on the search result, you can follow this approach:
- Add a Router after the “Search Contact” action.
- In one route, set the condition if the Contact ID from the Search Contact action exists, then Update Contact.
- In the second route, set the condition if the Contact ID does not exist, then Create Contact.
- After these routes, you can use the Data Forwarder: Return Data to Source action to send the data back to the webhook source.
The problem is, I want to be able to update contact from google contact (from web, android/ios device), and send it back to my app.
If I create "when google contact created/updated then create/update contact in my app" workflow, it will create infinite loop.