function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LaurentDelcLaurentDelc 

Problem upgrading Document

Hi,
 
Have you ever heard of anything related to upgrade problems with Document?
It seems that the upgrade process doesn't work for Documents: after we upload a new package with a new version of a Document and install it in an org that already has the package (upgrade process) the Document doesn't change. The Documents are in the package but it seems that they don't upload properly when we upload a new version of the package.
 
Could that be because it's a managed package?
 
Cheers,
 
Laurent
A_SmithA_Smith

This is correct.  Documents are not upgradeable.  You would need to create a new document if you'd like to upgrade it.  Or look into using static resources (if it meets your needs), which are upgradeable.

 

 

LaurentDelcLaurentDelc

Hi,

 

Unfortunately static resources are not accessible from APEX which makes this solution not valid for us.

 

Our problem is simple: we want a way to have configuration files accessible from APEX and upgradable.

 

Laurent