Skip to main content

Can anyone please suggest some better alternatives?

 

1) Picture Uploader really only works in Classic because it uploads to the Notes & Attachments related list, which is deprecated by Salesforce Files in Lightning since Winter '18. Once you use Magic Mover to convert all your Classic legacy notes and attachments to Salesforce files for Lightning, and enable "Files uploaded to the Attachments related list on records are uploaded as Salesforce Files, not as attachments" (as recommended during Lightning migration), it breaks the link and the image no longer display.

 

2) https://developer.salesforce.com/blogs/developer-relations/2015/11/create-lightning-component-drag-drop-profile-pictures.html (You'll get 2 compile errors regarding the "return null"...more deprecated code -- see https://help.salesforce.com/articleView?id=000269952&language=en_US&type=1 -- I couldn't make enough sense of this to understand how fix the code, so instead I just commented out lines 9 and 23, and then it compiled... However, it's very basic, drag and drop only, not even "Upload", "Edit" or "Delete" buttons so users can easily understand how to use it.)

 

Could a developer here modify the Apex code above to build a more user-friendly app with a resizable Lightning component, Upload/Edit/Delete buttons, etc. and post to the AppExchange... Please??

 

@Salesforce.org System Administrators

@Nonprofit Success Pack

@Nonprofit Hub

4 risposte
  1. 7 lug, 11:00

    Hi,

     

    If you're still looking for a native-looking option, we recently launched an AppExchange component for this.

     

    It lets users upload, crop, and display images or logos directly on standard or custom Salesforce record pages, alongside selected record fields so everything stays in one place.

     

    Might save you some time if you don't want to build and maintain a custom LWC just for image upload and display.

     

    Here’s the link:

    https://appexchange.salesforce.com/appxListingDetail?listingId=a0NKX000001VLyT2AW

0/9000