quotesListDataLoad: "quotesListDataLoad" = 'quotesListDataLoad'

Method name for PRE quotesListDataLoadPre and POST quotesListDataLoad

This method will trigger in CRM, when quote List is loaded.

Additional Properties:

  • response: Returns list of the quote.

Example: (Basic)

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

Example: (Navigate User to Existing Quote or Create a New One)

export const quotesListDataLoad = async ({
api: { crmManager, navigate },
response: { totalRows, data },
}) => {
const isOpportunityPage = await crmManager.isOpportunityPage();
if (isOpportunityPage) {
if (totalRows > 0) {
const id = data[0]?.typedId;
await navigate("priceShopPage", { id });
} else {
// targetPageEntityType allows selecting a custom quote type. This parameter can be removed if the default quote type is to be used.
await navigate("newQuotePage", {
targetPageEntityType: "Feasibility Model",
});
}
}
return false;
};

Generated using TypeDoc