Image methods

The SharinPix package provides the Apex class, Image, which includes methods that can be applied when manipulating images on Salesforce.

Here is the latest list of methods available (September 2021):

  1. global static List<Object> moveImages(List<String> lstImageIds, String destinationAlbumId)
    • Moves one or more images to another album. Note: This method can be used to move a maximun of 50 images at once. Example: Image.moveImages(new List<String> { 'imageId1', 'imageId2' }, 'destinationAlbumId');
  2. global void exportAsContentDocument()
    • Exports a SharinPix Image to Salesforce as a Content Document. Example: (new Image('public_id')).exportAsContentDocument(); 

Tip:

The SharinPix package also include the Utils class which provides useful methods that can be used for image, album, tag management and a lot more. For more information about the Utils method, please refer to the article below:

Utils methods

0 Comments

Add your comment

E-Mail me when someone replies to this comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.