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.

export const rebateAgreementsDetailSubmit = async ({ api, rebateAgreementAPI }) => {
// TODO: Add your code
return;
}
export const rebateAgreementsDetailSubmit = async ({ rebateAgreementAPI }) => {
await rebateAgreementAPI.setHeaderValue('label', 'Interceptor experiment - rename RBA');
};
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});
}
};