Hi Can I access value of constant in Plugin without passing it


Hi

Can I access value of constant in Plugin without passing it as input parameter ? using ContentService or any other way ?

Thanks

OriginalPostID-145114

OriginalPostID-145114

  Discussion posts and replies are publicly visible

  • You can use the below if you have the constant's UUID.
              
              Constant cons = (Constant) contentService.getVersion(contentService.getIdByUuid(constantUuid), ContentConstants.VERSION_CURRENT);
              
    If you don't have the UUID, then you can put the constant in a dummy application and then look at the export log to get the constant's UUID.