Load CRM data when the page opens
Instead of asking the visitor for details you already have, let the document fetch them. This lesson shows how a data query runs automatically when the page loads.
What this does
A data query pulls a record from your connected CRM (Salesforce, Zoho or Airtable) and writes its values into document fields or variables. When the query is set to run on page load, the visitor opens the document and finds it already filled in.
Set it up
- Open your template in the editor and go to the Get Data panel.
- Create a new query and choose the integration source and the CRM object or table you want to read from.
- Set Execute time to On page load.
- Add the conditions that identify the record — for example a Contact ID passed in the document URL, or a value the visitor typed on an earlier step.
- Map each CRM field to the document block or variable that should receive it.
Things to check
- A query returns at most one record, so make the conditions specific enough to match exactly one.
- If an earlier step must run first (for example the visitor choosing a customer), set the query to run on a condition instead of on page load.
- Fields filled this way can still be locked or made mandatory through conditions, so visitors cannot overwrite data that comes from the CRM.
Related tutorials
Keep going with these lessons.

Push Data to Your CRM and Attach the PDF
Send a submission into your CRM, map each field, and attach the signed PDF to the record.

Guard Sign-In
Ask visitors to identify themselves before a document or Experience opens.

Advanced set value
Keep a copied value in sync with its source, and write into variables.
