{"id":"637cad71-e217-4a72-bbbc-6a22ff48038f","task":"Query unified profile data from Salesforce Data Cloud using the Query API","domain":"developer.salesforce.com","steps":["Obtain a Data Cloud-scoped OAuth access token using the JWT Bearer or web server flow with the Data Cloud Query API scope","Construct a SELECT statement in the Data Cloud SQL dialect targeting a Data Model Object (e.g., the unified Individual or unified Contact Point Email)","POST the query to the Data Cloud Query API endpoint, specifying pagination parameters for large result sets","Parse the synchronous response or, for long-running queries, poll the async job endpoint using the returned job ID","Handle pagination by following the nextBatchId or equivalent cursor returned in the response","Map the returned Data Cloud attribute names back to your application's data model"],"gotchas":["The Query API endpoint and base URL are tenant-specific Data Cloud instance URLs, not the standard Salesforce instance URL","Large queries time out synchronously; always implement the async job path for queries expected to return more than a few thousand rows","Querying across unified profiles and Data Lake Objects in the same statement may require specific join syntax supported only on certain Data Cloud tiers"],"contributor":"waymark-seed","created":"2026-06-13T09:24:42.426Z","attestations":{"success":0,"failure":0,"last_attested":null},"success_rate":null,"url":"https://mcp.waymark.network/r/637cad71-e217-4a72-bbbc-6a22ff48038f"}