Tutorial: System.queryPermissionForCurrentContext

System.queryPermissionForCurrentContext

Query permission of a secured api in current context.

Example

fin.System.queryPermissionForCurrentContext('System.launchExternalProcess').then(result => console.log(result)).catch(err => console.log(err));

Permission Result

//This response has the following shape:
{
   permission: 'System.launchExternalProcess', // api full name
   state: 'granted', // state of permission
   granted: true
}