douglascayers/sfdc-related-files-lightning

Community Support

Opened this issue · 2 comments

love this app can't emphasis that enough. it would be great if it could be extended to support communities.

I got it working with a crude hack:

removed force:hasSObjectName as it's not supported
added in a apex method to get the object name getSObjectType()
equally could have just added a new design element where you get the sobjectname and it would have worked.

had some file visibility issues but on the whole for the demo it worked to give a good idea of the kind of custom code option.

Thanks @Hyphen8 for the kind feedback and the path for this to support communities. I'll see what I can accomplish for the next release.

As documented here and here, the interface force:hasSObjectName is not supported in communities.

This enhancement request would remove the interface and determine the sobject type per the record id instead. This may require a call to Apex to call Id.getSObjectType().