Custom hook
{
"branch_id": <the id of the branch, or null>,
"new_health_state": <the new health state of the run, e.g. "HEALTHY">,
"sync_id": <the id of the sync>,
"sync_run_id": <the id of the sync run>
}create table TEST_HOOK_LOG(payload OBJECT);
CREATE OR REPLACE PROCEDURE SYNC_RUN_POST_HOOK(result OBJECT)
RETURNS VARCHAR NOT NULL
LANGUAGE SQL
EXECUTE AS OWNER
AS
BEGIN
INSERT INTO TEST_HOOK_LOG select :result;
RETURN 'Rows inserted: ' || SQLROWCOUNT;
END;
grant usage on procedure SYNC_RUN_POST_HOOK(OBJECT) to application OMNATA_SYNC_ENGINE;
Last updated