Skip to main content
Hello I been using Content Distribution to get ContentDownloadURL for images that are stored in Salesforce Files. 

 

It was working until 12/14 however now its broken. 

 

Every new ContentDistribution Object that I create will have that URL Link with a Custom URL of a"Site" that is on the Org.

 

Example: https://lightdmg--DevQA.cs43.my.salesforce.com/sfc/dist/EventRegistration/version/download/?oid=00D63000000CsiO&ids=06863000000AI06&d=%2Fa%2F630000008R5J%2FxUgdRhmYhJPRs.g8dIL5S08XflNPDvYfPcfTSrnrQDw&asPdf=false

 

I notice that the EventRegistration word is actually there for some reason and it shouldnt. Correct Download URL is: https://lightdmg--DevQA.cs43.my.salesforce.com/sfc/dist/version/download/?oid=00D63000000CsiO&ids=06863000000AI06&d=%2Fa%2F630000008R5J%2FxUgdRhmYhJPRs.g8dIL5S08XflNPDvYfPcfTSrnrQDw&asPdf=false

 

has anyone else stumble onto this issue, is there a way to fix this so ContentDistributions would have a Valid Download URL?
3 answers
  1. Dec 16, 2017, 1:41 PM
    Hi Lester,

     

    If you are setting the correct URL for ContentDistribution, then there might be something like a trigger, process builder or workflow which is overwriting your correct URL. You can debug this by checking the history for that particular ContentDistribution record.

     

    Still, if you are not able to find the issue, then you can write another trigger that will remove EventRegistration word from the URL. And that will make correct URL as per your research.

     

    Let me know If I can help you further.

     

    Thanks & Best Regards

     

    Ajeet
0/9000