Open tprouvot opened 1 year ago
This is an interesting option @tprouvot but, unfortunately, the Files related list is not supported by this mechanism and would therefore require implementing a custom Apex controller, which was not the initial design option (LDS first). Thanks for pointing out to this standard LDS capability. 🙏
When this requirement is confirmed, I would rather implement a new sfpegMediaListPlayCmp Component enabling to:
Is your feature request related to a problem? Please describe. Using a text custom field to store the id can compromise data integrity if the contentDocument is deleted. To avoid this, it would be great if we could use the related list relation name instead of a custom field to store the ContentDocumentId
Describe the solution you'd like We can have parameters on the LWC to store the relatedList relation name and a filter.
Describe alternatives you've considered
Use wire api to retrieve relatedList records
Use apex soql to retrieve the related list record
Additional context WARNING: All the related list are not available through the wire service, for example AttachedContentDocuments on Campaign