Assume there is a custom object elfBCQuote__c
having an Tab and an Icon assigned during object creation via Setup.
Now I am on a VF-Page and have only the objects name elfBCQuote__c
as string. Is there any way to get the correct lightning icon name of that given object?
I need to identify that icon:
I need get something like custom/custom41
or custom:custom41
to dereference the SVG from SLDS in my own VF-comoponents. VF, JS or APEX solutions or even ideas are welcome!
Annex 1
I'm also interested of getting the same inside my lightning-components. Solution via markup, js-controller, apex-controller or otherwise are all welcome!
Annex 2
Actually I was able to do it for an <apex:relatedList>
but my solution is such an evil hack, that I'm not going to post it here... But @saleforce: we need this urgently. So this question stays still open. However the result (believe it or not it's a visualforce page) looks like this:
DescribeSObjectResult
class. You have it for tabs but not objects. Another possible workaround - if you are in 1 org (not a developing a package for many orgs) you can define a table (custom setting) that maps each object with it's related icon – Itai Shmida Aug 31 '17 at 4:54