Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Get s7asset from dynamic media using Scene7Service.getAsset().

Avatar

Employee

Hi team,

I need to get the Scene7Asset from dynamic media using Scene7Service. Scene7Service has a method getAsset. "getAsset(java.lang.String assetHandle, java.lang.String[] responseFields, java.lang.String[] excludeFields, S7Config s7Config)".

What should be the responseFields and excludeFields that has to be passed as params? Is it aem asset properties or dm asset properties? Please respond if anyone has worked on this. 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

You may try 

//Specify which Scene7 asset properties you want to retrieve
String[] responseFields = {"name", "url", "assetType", "metadata"};
Specify which Scene7 asset properties you do not want in the response
String[] excludeFields = {"metadata.keywords"};

scene7Service.getAsset(assetHandle, responseFields, excludeFields, s7Config);

 

Thanks

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hi,

You may try 

//Specify which Scene7 asset properties you want to retrieve
String[] responseFields = {"name", "url", "assetType", "metadata"};
Specify which Scene7 asset properties you do not want in the response
String[] excludeFields = {"metadata.keywords"};

scene7Service.getAsset(assetHandle, responseFields, excludeFields, s7Config);

 

Thanks

Avatar

Administrator

@Keerthana_H_N Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni