Get s7asset from dynamic media using Scene7Service.getAsset(). | Community
Skip to main content
Adobe Employee
October 7, 2024
Solved

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

  • October 7, 2024
  • 2 replies
  • 486 views

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. 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by MukeshYadav_

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

2 replies

MukeshYadav_
Community Advisor
MukeshYadav_Community AdvisorAccepted solution
Community Advisor
October 7, 2024

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

kautuk_sahni
Community Manager
Community Manager
October 16, 2024

@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