EPiServer.ServiceApi.Commerce 5.4.4 GetOrder endpoint does not return line item meta fields (properties)

Vote:
 

Hi. We are using ServiceApi to get order details through a http request (episerverapi/commerce/orders/orderGroupId). We added some meta fields on LineItem but they are not present in the response. We decompiled the endpoint and found that Properties property is present on the LineItem model but is not populated in ConvertToLineItemModel method (OrderGroupModelConverter class) (it is populated on OrderGroup, OrderForm, Payment, Shipment). 

Is this known issue and will be included in next releases? What are your suggestions to workaround this issue?

#224715
Jun 24, 2020 13:31
Vote:
 

Thank you for bringing this into our attention. I will file a bug for Commerce (which they might turn in to a story), but it might take a while for them to do this.

#224716
Jun 24, 2020 14:20
Vote:
 

There is one line of code to add: Properties = lineItem.ConvertToPropertiesModel() nothing more and it is more related to EPiServer.ServiceApi.Commerce nugget then Commerce itself. Do you have any suggestion how to workaround this issue?

#224717
Jun 24, 2020 15:10
Vote:
 

I see. Looks like a quick fix - unfortunately it is not possible to easily do that on your side, but I will push for a fix soon.

#224721
Jun 24, 2020 18:34
Vote:
 

Hello, Ion

Could you check again? I have tried reproduce on Service API 5.4.4 and checked code. 

GetOrder endpoint returns LineItem's metafields properly.

#224748
Jun 25, 2020 8:34
Vote:
 

Hi, cuvu

I tried again but I still don't get the metafields. I also tried to uninstall and then install again EpiServer.ServiceApi and EpiServer.ServiceApi.Commerce nugget packages (v 5.4.4) and nothing changed.

Installed version:

Db LineItems:

Response:

Thanks,

Ion

#224753
Edited, Jun 25, 2020 9:28
Vote:
 

Hi, Ion

I'm sorry. You are right.

Yep, this is a bug and we have already fixed that and I have checked in the lastest branch.

It will be resoved in the next release of Service API.

Thanks.

#224761
Jun 25, 2020 10:39
Vote:
 

Got it, cuvu.

Do you have any idea when the next version will be released?

Thanks,

Ion.

#224762
Jun 25, 2020 10:44
Vote:
 

I think next week, because in the next release it contains only this bug :D

#224763
Jun 25, 2020 10:50
Vote:
 

It will be great. 

Thank you.

Have a nice day,

Ion.

#224765
Jun 25, 2020 10:57
Vote:
 

Hi, Ion

Service API 5.4.5 has been released :)

https://nuget.episerver.com/package/?id=EPiServer.ServiceApi

#225015
Jul 02, 2020 7:08
Vote:
 

Hi, cuvu

Thank you for the update, we already upgraded the packages yesterday and tested them. It works as expected now.

Thank you for the quick response and fix.

Have a nice day.

#225016
Jul 02, 2020 7:20
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.