I am exporting a VF page as Excel document. But i cant seem to get the logo put to display in the exported excel sheet. All i get for the image is red X

I did see some post to upload the image as document and use the document url to display the image.

How to display image from Static Resource in Excel sheet (generated from VF Page)

Referencing Externally Available Images Absolute URL with My Domain?

In one of the post, they have asked to use the following url https://mydomain.my.salesforce.com/servlet/servlet.ImageServer?id=015a00000030EqL&oid=00D30000000X7qS&lastMod=1392744621000

What does the id and oid represent ?


  • Where are you storing the image? Static Resource or Document object? Feb 19, 2016 at 10:26
  • Document object
    – Prady
    Feb 19, 2016 at 11:12

1 Answer 1


The oid is the org ID (Setup -> Company Profile -> Company Information -> Salesforce.com Organization ID) and the id is a Document ID. If the Document has "Externally Available Image" set the URL will allow access without authentication which is what you probably want from your spreadsheet.

  • Ah that makes sense
    – Prady
    Feb 19, 2016 at 12:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.