cancel
Showing results for 
Search instead for 
Did you mean: 

How to update one UDF value of BP Specific SpecialPrices using ServiceLayer API ?

former_member209771
Active Participant
0 Kudos

Hi Expert ,

I want to update one udf value of BP Specific SpecialPrices.I have attached the document of details to retrieve data .As per the table structure I have one confusion
what is the primary key field of BP Specific SpecialPrices

I am getting below error when i try to patch the data

Request Type : Patch

Request Url : https://10.0.0.181:50000/b1s/v1/SpecialPrices('20003')

Request Body :

{

"U_SyncFlag": "T" specialprice.txt

}


Error Details :

{ "error": { "code": -2028, "message": { "lang": "en-us", "value": "Entity with value('20003') does not exist" } } }


Thanks

Surajit

View Entire Topic
former_member390407
Contributor
0 Kudos

Hi Surojit,

You need to pass CardCode and ItemCode for the special price you want to update, since this table has the composite primary key.

Example:

PATCH https://localhost:50000/b1s/v1/SpecialPrices(CardCode='c001',ItemCode='i001')