...
Expand | |||||
---|---|---|---|---|---|
| |||||
Connec! has a built in filter that can be used to query for a specific subset of entities on a given endpoint. Please refer to:
I.e. In the entity below ('contact.rb'), you want to fetch only the entities that are leads. In order to maintain a consistent workflow (including web-hooks), a method to override is provided (to be used in conjunction with the filtering):
|
...
Code Block | ||
---|---|---|
| ||
class ExternalWebhooksController < ApplicationController def notification organization = # find organization from webhook params # The second argument should be a hash: {"external_entity_name1" => [entity1, entity2], "external_entity_name2" => []} Maestrano::Connector::Rails::PushToConnecJob.perform_later(current_organization, entities_hash) end end |
...