Rate this page:
The invoke
bridge method enables custom UI apps to run backend FaaS functions hosted by Atlassian.
To use the invoke
bridge method, you need to define your functions using the
custom UI resolver.
1 2function invoke( functionKey: string, payload?: { [key in number | string]: any } ): Promise<{ [key: string]: any } | void>;
functionKey
in one of your resolver function definitions.1 2import { invoke } from '@forge/bridge'; invoke('getText', { example: 'my-invoke-variable' }).then((data) => console.log(data));
Rate this page: