AssetLink 0

Vote:
 

Hi!

Does anyone know why the Id for asset link is 0? I can see the image in commerce catalog but while fetching it via API I don't get the image

#251997
Mar 29, 2021 21:58
Vote:
 

Apply the AssetType filter in where clause and then try:

content.CommerceMediaCollection?
.Where(x => x.AssetType.Contains(nameof(CommerceImage).ToLower()))?
.AssetLink;

#252419
Edited, Apr 02, 2021 3:28
Vote:
 

It should not be 0. I don't know why, does it happen to all assets, or just a specific one? 

#252555
Apr 06, 2021 7:51
Vote:
 

Hi guys. Thanks for your replies. Just to let you know why there is some delay in response. Maryam is not working for us right now. I am currently trying to find someone else who can look into this.

#252603
Edited, Apr 07, 2021 8:53
Vote:
 

Just a reminder that you can always reach out to developer support service - and in this case you should. Look like it's something with your data and it'd be better to be handled by support. 

#252606
Apr 07, 2021 9:10
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.