Skip to main content
salesforce_query Last resort. Use only when salesforce_find_records_smart, salesforce_summarize_records, or salesforce_get_record_overview cannot express the question (for example multi-field GROUP BY, HAVING, or semi-joins). Call salesforce_explore_schema first for exact object and field API names.
SELECT only. The statement runs exactly as written — DeepMask does not rewrite it, add fields, or follow nextRecordsUrl. One page per call. There is no write or delete via this action.

Parameters

Returns

One page of rows. Structured data includes full ids and each row’s web_url. Add filters or a LIMIT in the SOQL for large results.

Example use

“Run this SOQL: select StageName, count(Id) from Opportunity where IsClosed = false group by StageName having count(Id) > 5”