Pricefx Interceptor API
    Preparing search index...

    Variable quotesListDataLoadConst

    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.
    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;
    };