Variable rebateAgreementsDetailCrmFindOpportunitiesConst

rebateAgreementsDetailCrmFindOpportunities: "rebateAgreementsDetailCrmFindOpportunities" = 'rebateAgreementsDetailCrmFindOpportunities'

Method name for PRE rebateAgreementsDetailCrmFindOpportunitiesPre and POST rebateAgreementsDetailCrmFindOpportunities

Method is triggered from the rebate agreement detail page /#/rm/rebate-agreements/<rebateAgreementId>, 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
export const rebateAgreementsDetailCrmFindOpportunities = async ({ api, result, searchText, rebateAgreementAPI }) => {
// TODO: Add your code
return;
}