Variable compensationsDetailCrmFindOpportunitiesConst

compensationsDetailCrmFindOpportunities: "compensationsDetailCrmFindOpportunities" = 'compensationsDetailCrmFindOpportunities'

Method name for PRE compensationsDetailCrmFindOpportunitiesPre and POST compensationsDetailCrmFindOpportunities

Method is triggered from the compensation plan detail page /#/sc/compensation-plans/<compensationPlanId>, 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 compensationsDetailCrmFindOpportunities = async ({ api, result, searchText, compensationPlanAPI }) => {
// TODO: Add your code
return;
}

Generated using TypeDoc