Is there a list of Salesforce images that can be used in custom pages and formula fields?

  • I have a Visualforce page that includes some Ajax functionality as follows:

    <apex:actionStatus id="searchtStatus" stopText="">
        <apex:facet name="start">
           Searching....<img src="{!URLFOR($Resource.res, 'img/loading.gif')}"/>

    Alternatively, I could have just linked directly to the Salesforce image in the facet as follows:

    <apex:facet name="start">Searching....<img src="/img/loading.gif"/></apex:facet>

    I did not do that because I could not find a list of Salesforce published standard images and, therefore, was not confident that the /img/loading.gif would always be present. I did see that there are some references in the IMAGE formula examples to images located in /img/samples/.

    Is there a list of Salesforce images that can be referenced safely in custom pages and/or formula fields?

    Salesforce recommends putting all the images or style classes even natively found in static resources since salesforce (Safe Harbour) does not guarantee that this might not change in future.And it has been observed from time to time that salesforce has changed this images and styles

  • techtrekker

    techtrekker Correct answer

    9 years ago

    I would put using images that salesforce use to render stuff in the same broad bucket as screen scraping.

    Whilst this may work okay, there isn't a way to warranty against breakage some day.

    (I've used the sfcti js resource for CTI and the locations have changed twice in the last 12 months, there isn't a way to tell when they changed except for when users discovered CTI won't work anymore, therefore this approach surely has its perils)

    Having said all this, a quick google search threw up this page which seems to catalogue quite a few images / icons.

    Probably there's nothing official (safe harbor, "we can change our CSS at any time without prior notice" etc etc) ;) But please add, it helped me on couple of occasions

License under CC-BY-SA with attribution

Content dated before 7/24/2021 11:53 AM