question

koplx55 avatar image
0 Likes"
koplx55 asked

Can't get all Template data from Inventory via GetSellingManagerTemplates or GetSellingManagerInventory

Hello, I'm trying to get all Template data from Inventory into my vb.net application using GetSellingManagerTemplates Call, but unfortunately I can't get some necessary data or received data is not full or incorrect. In particular I don't receive International Shipping Service Options at all in SoapResponse and also ItemID is same as SaleTemplateID (API bug?). How to get this data via GetSellingManagerTemplates or GetSellingManagerInventory API Calls? Please, tell me what I'm doing wrong. Here is my code: Dim ApiCall As GetSellingManagerTemplatesCall = New GetSellingManagerTemplatesCall(Context) ApiCall.DetailLevelList.Add(DetailLevelCodeType.ReturnAll) Dim fetchedTemplate As New GetSellingManagerTemplatesResponseType ApiCall.SaleTemplateIDList = New Int64Collection ApiCall.SaleTemplateIDList.Add(TemplateID) ApiCall.DetailLevelList = New DetailLevelCodeTypeCollection ApiCall.DetailLevelList.Add(DetailLevelCodeType.ReturnAll) ApiCall.ApiRequest.DetailLevel = New DetailLevelCodeTypeCollection ApiCall.ApiRequest.DetailLevel.Add(DetailLevelCodeType.ReturnAll) ApiCall.Execute() fetchedTemplate = ApiCall.ApiResponse For Each smtDetails As SellingManagerTemplateDetailsType In fetchedTemplate.SellingManagerTemplateDetailsArray Dim ShippingService As String = "" For Each ShippingServiceOption As ShippingServiceOptionsType In smtDetails.Template.ShippingDetails.ShippingServiceOptions ShippingService = smtDetails.SaleTemplateID + " " + smtDetails.Template.ItemID + " " + ShippingServiceOption.ShippingService.ToString + " " + ShippingServiceOption.ShippingServiceCost.Value.ToString + vbCrLf Next Debug.Print(ShippingService) Next Thank You.
inventorygetsellingmanagertemplates
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.