--- title: Index Lightning flows slug: '3120' canonical_url: https://docs.coveo.com/en/3120/ collection: coveo-for-salesforce source_format: adoc --- # Index Lightning flows [.version.c4sf.c4sf-edition.c4sf-pro-enterprise] [Pro and Enterprise editions](https://docs.coveo.com/en/l2590456#salesforce) You can create a custom object to be able to index Flows inside Salesforce to serve them as search results. Since Flows are only metadata instead of being a record, you can't index them directly. You need to create a custom object that contains the information about the suggested fields necessary to search the Flows. ## Creating a flow in your Salesforce organization . In the **Setup** menu, select the **Object Manager** tab and search for **Flow**. You should find a Flow object called `CoveoV2__Flow__c`, an indexable Flow: > **Note** > > You can modify the flow layout to customize it and use the new template with (see [Building Page Layouts for Custom Objects](https://help.salesforce.com/articleView?id=building_page_layouts_for_custom_objects.htm&type=5)). . [Create a Page Layout](https://help.salesforce.com/articleView?id=customize_layoutcreate.htm&type=5). > **Important** > > You must add the **FieldAPIName** in your layout since you need it to index the flow in your Coveo organization. . In the **App Launcher** search for and click **Flows**, which appears as a tab in the menu at the top of the page. . [Build a Flow](https://help.salesforce.com/articleView?id=flow_build.htm&type=5). . In the **Setup** menu, search for and select `Flows`. Then, create a new Flow by following the steps (see [Build a Flow](https://help.salesforce.com/articleView?id=flow_build.htm&type=5)). . Ensure that your flow is activated (see [Activate or Deactivate a Flow](https://help.salesforce.com/articleView?id=flow_distribute_activate.htm&type=5)). ## Indexing your flow in your Coveo organization . In the Coveo Administration Console, access your source configuration. . Search for and select **Flow**. . Ensure that you have indexed the Flows and that you have the `CoveoV2__FlowAPIName__c` field in your source. > **Leading practice** > > Use unique API names for every objects. . Choose Fields that need to be indexed. . Click **Save and Rebuild Source**. Your **Flow** tab should look like this: