Method name for PRE contractsDetailNewCheckPre and POST contractsDetailNewCheck
This method is triggered after pressing the New Contract button at /#/pm/contracts, but before the contact is created.
If this method return false a contact will not be created and user will stay at contacts list.
In this method you don't have access to contractAPI, but you can use other api for checking conditions from CRMs.
Example
exportconstcontractsDetailNewCheck = async ({ api }) => { // TODO: Add your code return; }
Method name for PRE
contractsDetailNewCheckPre
and POSTcontractsDetailNewCheck
This method is triggered after pressing the New Contract button at
/#/pm/contracts
, but before the contact is created. If this method returnfalse
a contact will not be created and user will stay at contacts list. In this method you don't have access tocontractAPI
, but you can use other api for checking conditions from CRMs.