Hi Jon,
I'm very happy to help you!
I will provide you some code snippets to help you understand.
var initQuery = SalesPriceList.QueryByGroupCode;
var initSelParams = initQuery.CreateSelectionParams();
initSelParams.Add(initQuery.GroupCode.content, "I", "EQ", "PLPRICE1");
var initQueryResult = initQuery.Execute(initSelParams);
the above code is required. Initialization query.
the below code from the Help document is changed for query the Customer Specific Price List.
var query = SalesPriceList.QueryByTypeCodeAndPropertyIDAndPropertyValue;
var selParams = query.CreateSelectionParams();
// List type 7PL0 = Price inside a list
selParams.Add(query.TypeCode.content, "I", "EQ", "7PL0");
// Released price list
selParams.Add(query.ReleaseStatusCode, "I", "EQ", "3" );
// Valid today
selParams.Add(query.ValidityPeriod.StartTimePoint.Date, "I", "EQ", Context.GetCurrentUserDate());
selParams.Add(query.ValidityPeriod.EndTimePoint.Date, "I", "EQ", Context.GetCurrentUserDate());
//"CND_BUYER_ID" define query the Customer Specific Price List
selParams.Add(query.PropertyValuationPriceSpecificationElementPropertyValuation1.PriceSpecificationElementPropertyReference.PriceSpecificationElementPropertyID.content, "I", "EQ", "CND_BUYER_ID");
var queryResult = query.Execute(selParams);
...
if it does not work, do let me know. hope to help you!
Warm Regards,
Eric