function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sweta C 10Sweta C 10 

SOQL Query to get version data from ContentDocumentlink object while running in batches via API

I was trying to get VersionData from ContentDocumentLink Object directly in one SOQL query instead of working on two seperate queries in a batch via API.
was trying this :SELECT Id, (SELECT ID, ContentDocument.LatestPublishedVersion.VersionData FROM ContentDocumentLinks) FROM Case
It gives version data in Workbench but doesn't give it in API response.
Appreciate the help.
Thanks, Sweta