Adding a Query to a Canvas
Canvas in Zoho CRM gives you powerful UI customization capabilities. Right from color themes, buttons, images to business cards, you can customize all aspects of the UI. Refer to Customizing Record Detail Page Using Canvas and Types of Canvas views for more details on working with Canvas.
You can use a query you created in Queries in the Record Detail View and List View Canvas of a module. When you create a canvas view, you can incorporate the query components.
On the left, you can see different components of the canvas including Queries. Follow the steps to associate a query with a canvas.
Record Detail View

- Click the database icon for Queries components. Click Associate Query.
- Give the Association Name, select the Source.
- Select the required query of the chosen type in the Query drop down.
- Choose the display type on the canvas.
- If your query has any variables, they will be displayed under the Variables section. Select the relevant field from the drop down for that variable.
Click Done.
- Choose a template for the canvas. The canvas opens.
You can see the query and the different fields on the left. Drag and drop the required items on the canvas and save it. This associates your query with the canvas.
List View

- Click the database icon for Queries components. Click Associate Query.
- Give the Association Name, select the Source.
- Select the required query of the chosen type in the Query drop down.
- If your query has any variables, they will be displayed under the Variables section. Select the relevant field from the drop down for that variable.
- Choose the display type on the canvas.
- Under Result Mapping, select the Source Record Field and Query Response Field. This is to connect the current module and the selected query.
Click Done.
You can see the different fields of the query on the left. Drag and drop the required items on the canvas and save it. This associates your query with the canvas.
Note
For query types that have a serializer, you can change the data type and label in the response. However, for CRM-Module type queries without a serializer, data type and label will be synced from the CRM module itself and you cannot edit them.