rebateAgreementsDetailSubmit: "rebateAgreementsDetailSubmit" = 'rebateAgreementsDetailSubmit'

Method name for PRE rebateAgreementsDetailSubmitPre and POST rebateAgreementsDetailSubmit

Triggered after user press an OK button in submit modal at rebate agreement detail page /#/rm/rebate-agreements/<rebateAgreementId>.

Notes: To open the submission modal, users need to click on the Submit button on the rebate agreement detail page.

Example: (Basic)

export const rebateAgreementsDetailSubmit = async ({ api, rebateAgreementAPI }) => {
// TODO: Add your code
return;
}

Example: (Basic RBA experiment, with edited label)

export const rebateAgreementsDetailSubmit = async ({ rebateAgreementAPI }) => {
await rebateAgreementAPI.setHeaderValue('label', 'Interceptor experiment - rename RBA');
};

Example: (Generate Link from Header Input and Display in Notification)

export const rebateAgreementsDetailSubmit = async ({ rebateAgreementAPI, api: { notify }}) => {
const link = await rebateAgreementAPI.getHeaderInputValue('MedalliaSurveyLink');
if (link) {
await notify.success('<a href="' + link + '" target="_blank">Medallia Survey</a>', { duration: 30});
}
};

Generated using TypeDoc