> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: listTriggers(context: Context) # Method package: wixEcom # Method menu location: wixEcom --> EcomCustomDiscountTriggers --> listTriggers # Method Link: https://dev.wix.com/docs/velo/events-service-plugins/e-commerce/service-plugins/ecom-custom-discount-triggers/list-triggers.md # Method Description: Retrieves all available custom triggers. The `listTriggers()` function lists all custom triggers provided by your business logic. The function is automatically called by Wix eCommerce to populate the custom [minimum requirements section of an automatic discount](https://support.wix.com/en/article/wix-stores-creating-automatic-discounts#:~:text=Create%20minimum%20requirements). ### Where to find `listTriggers()` When you [add the Custom Discount Trigger plugin](https://dev.wix.com/docs/develop-websites/articles/code-tutorials/wix-e-commerce-stores/tutorial-custom-discount-trigger-service-plugin.md#step-1-create-a-new-custom-discount-trigger-plugin), a folder is automatically added to your site. Use the `.js` file in the folder to write the code to retrieve all available custom triggers. For more information on setting up your custom triggers, see [Tutorial: Custom Discount Trigger Service Plugin](https://dev.wix.com/docs/develop-websites/articles/code-tutorials/wix-e-commerce-stores/tutorial-custom-discount-trigger-service-plugin.md#custom-triggersjs). # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## List custom triggers ```javascript export const listTriggers = async () => { return { customTriggers: [ { _id: "1", name: "Grey Item Custom Trigger" }, { _id: "2", name: "Blue Item Custom Trigger" }, { _id: "3", name: "Red Item Custom Trigger" } ] } }; ``` ---