I’m trying to set up a Fibery automation to send a webhook to a Make.com (aka integromat) webhook url, but don’t really code :-P.
My use-case: every time an entity is updated and meets certain filters, I want to send it via Webhook to Make.com. In the Webhook payload, I’d like it to send the UUID of the entity that has just met the trigger criteria.
Any chance someone can help me out with a sample script?
Create a connection to your Fibery Workspace (if you haven’t already done this in Make).
Choose the Fibery DB/entity Type that you want to watch.
Then your Trigger will receive an event every time an entity of that DB/Type is created or changed. It will have all the fields, including Id and Name.
Yes, I had done this, and noticed that the Webhook was getting a packet every time the DB in questions was updated.
My issue with this solution - I have a team of ppl constantly creating & updating records in this database, and I only need the automation to fire on a very small fraction of the updates (less than 1%), as shown below, and I’m trying to save Make operations ;-):
Currently I’m getting this error though: Failed to execute Action “Script”: http is not defined
My goal is to at least send the entity UUID to Make, then I can pull the rest of the data with the search operator and continue syncing with other apps.
Would be really useful to have this code snippet, if anyone is able to help!
A last question → as you can see above, I’m happily building out the contents of the webhook with various datapoints from the entity (name, UUID, etc).
Is there a short and easy way to just have the Webhook send ALL the data in args.currentEntities? As opposed to defining each field to be sent by hand?
Is there also a way to send attachment files via webhook?
In our use case, we are sending candidate profiles, it would also be great to send their CV which is generally attached as a pdf to the entities were are sending.
An alternative might be to generate an external link for each file attached to an entity… not sure if this is possible yet?
There are currently no direct script functions for retrieving files, but you can query the entity to get the ‘secret’ of any file(s) in the Files collection field, and then construct urls for downloading them: