Const
export const quotesListDataLoad = async ({ api, response }) => {
// TODO: Add your code
return;
}
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;
};
Method name for PRE
quotesListDataLoadPre
and POSTquotesListDataLoad
This method will trigger in CRM, when quote List is loaded.
Additional Properties:
response
: Returns list of the quote.