quotesDetailCrmFindOpportunities: "quotesDetailCrmFindOpportunities" = 'quotesDetailCrmFindOpportunities'

Method name for PRE quotesDetailCrmFindOpportunitiesPre and POST quotesDetailCrmFindOpportunities

Method is triggered from the quote detail page /#/qc/quotes/<quoteId>, 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

Example: (Basic)

export const quotesDetailCrmFindOpportunities = async ({ api, result, searchText, quoteAPI }) => {
// TODO: Add your code
return;
}

Generated using TypeDoc