Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConnectApi.PhotoInput

Specify how to crop a photo that has already been uploaded.
Property Type Description Available version
cropSize Integer The length, in pixels, of any edge of the crop square. 29.0
cropX Integer The position X, in pixels, from the left edge of the image to the start of the crop square. Top left is position (0,0). 29.0
cropY Integer The position Y, in pixels, from the top edge of the image to the start of the crop square. Top left is position (0,0). 29.0
fileId String 18 character ID of an existing file. The key prefix must be 069 and the file must be an image and be smaller than 2 GB. Images uploaded on the Group page and on the User page don’t have file IDs and therefore can’t be used. 25.0
versionNumber Integer Version number of the existing content. If not provided, the latest version is used. 25.0