Method name for PRE contractsDetailCrmFindOpportunitiesPre and POST contractsDetailCrmFindOpportunities
Method is triggered from the contract detail page /#/pm/contracts/<contractId>, when Opportunity Selector is accessed from the Assign Opportunity Modal by clicking the Assign Opportunity button.
Additional Properties:
searchText: Returns text entered in the Assign Opportunity Modal input field.
result: Returns an empty object {}. This property should be populated with a list of opportunities to be displayed in the modal. Here is an example:
const list = [
{
"Id": "9a8aa56e-b8e2-11ed-9464-0682adde4eb8",
"Name": "Insight Marketing Inc - £4400 - New - 123 Units (9a8aa56e-b8e2-11ed-9464-0682adde4eb8)"
},
{
"Id": "9a811fd0-b8e2-11ed-9fdc-0682adde4eb8",
"Name": "AD Importing Company Inc - £4123 - New - 154 Units (9a811fd0-b8e2-11ed-9fdc-0682adde4eb8)"
}
]
result.list = list
return result
Method name for PRE
contractsDetailCrmFindOpportunitiesPre
and POSTcontractsDetailCrmFindOpportunities
Method is triggered from the contract detail page
/#/pm/contracts/<contractId>
, when Opportunity Selector is accessed from the Assign Opportunity Modal by clicking the Assign Opportunity button.Additional Properties:
searchText
: Returns text entered in the Assign Opportunity Modal input field.result
: Returns an empty object{}
. This property should be populated with a list of opportunities to be displayed in the modal. Here is an example: