cancel
Showing results for 
Search instead for 
Did you mean: 

How to publish a value from property file in target layer while publishing from DataHub?

0 Kudos

I have below property in my local.properties. #custom properties hersheys.catalog.version=hersheysProductCatalog:Staged

I want to use this value for catalogVersion attribute that I will be publishing in all my target items.

I have tried below formats in "transformationExpression" Tag(PFAlink text). But None worked.

Could you please provide any pointer?

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member224482
Active Contributor
0 Kudos
 <transformationExpression>'${hersheys.catalog.version}'</transformationExpression>

The quotes are needed to express the value as a string.

Former Member
0 Kudos

this method is not working in version 6. Should we do some changes to access data from properties file?

former_member224482
Active Contributor
0 Kudos

This method is working in all versions of Data Hub. Please avoid false claims without proofs.