bgmulinari / B1SLayer

A lightweight SAP Business One Service Layer client for .NET
MIT License
122 stars 42 forks source link

SpecialPrices Request with Composite Key #62

Closed flo-p closed 4 months ago

flo-p commented 4 months ago

Hi,

is there a Solution for the SpecialPrice Endpoint wich is using a composite key.

I didn't manage to get this working:

serviceLayer.Request("SpecialPrices", "CardCode='81389',ItemCode = '48000-059'").GetAsync();

kind regards

Flo

flo-p commented 4 months ago

image

there are too many apostrophes as you see in the Image

jmartins-sh commented 4 months ago

Hey @flo-p how's it going?

Could you try something like this, please?

await serviceLayer.Request("SpecialPrices(CardCode='81389',ItemCode = '48000-059')).GetAsync();

Maybe the issue helps you: #53

flo-p commented 4 months ago

Hi @joaoantoniomartinsfilho

thank you very much, this worked for me:

var sp = await serviceLayer.Request($"SpecialPrices(CardCode = '81389', ItemCode = '48000-059')").GetAsync();