An overview of the functionality provided by the App SDK
fetch()
, and communicate with Attio’s REST API via
attioFetch()
.connection-added
event handler the app
registered is fired.createWebhookHandler()
to register a webhook handler.onTrigger()
function provided by the record actionshowToast()
.runQuery()
. - If no phone numbers are found, the user is notified via an alert()
.
Otherwise…sendToALC()
.fetch()
to send a POST
request to api.acmeleadchecker.ai
.attioFetch()
to mark the record
as “Pending”.hideToast()
.showToast()
.attioFetch()
to mark the record
as “Complete”.recordAction
.
.server.ts
(or .server.js
) suffixexport default async function
src/webhooks
directory.webhook.ts
(or .webhook.js
) suffix.export default async function
that:
src/events
.event.ts
(or .event.js
) suffix.export default async function
that:
{ connection: Connection }
argumentvoid