Retrieve values from data source asset using keywords only


(John) #1

Matrix Version:

Hello,
Is it possible to retrieve values from a JSON data source asset using keywords only?
Thank you!


(Iain Simmons) #2

Hi @John,

You could try %globals_asset_children:12345% where 12345 is the asset ID of the data source, but I expect that might not actually display anything.

Or try %globals_asset_data_attributes:12345% (again replacing the ID) and see if there’s anything useful. That can then be accessed via multiple ^index: modifiers to get a nested property.

Otherwise, you might be better off with just a REST Resource pointed at the same JSON URL and printing the response body directly in the JS Processing section.

Hope that helps,
– iain