You can just use the constructor
You can use ReferenceConverter to get the code from the content link
I see you already have the code, so simply
var catKey = new CatalogKey(req.itemCode);
ReferenceConverter.GetCode(contentLink) should let you do that
@Quan I appreciate your help/feedback so far - I actually tried that before, unfortunately the _catalogEntryId on the new Catalog key comes back null when I use Refconv to get the code. Here is some debugging information:
You don't need the _catalogEntryId there. For getting prices code is enough
Quan, thank you for your help - after that didn't work I did some more investigation with our solution. Based upon the new implementation that was made with our D365 integration, our partner setup a custom pricing system that queries our ERP retail server directly for the pricing information. Due to this, the pricing information isn't available on the item/sku level within Episerver - which is why my retrieval methods were unsuccessful using the out-of-the-box methods. Sorry for wasting your time, I appriciate your replying and providing information about this lookup.
I'm working on a feature that requires the lookup of pricing of a particular content reference - here is the code I currently have, based upon the documentation/posts and articles I've read, it looks like I need to use the PriceService to lookup the price based upon a CatalogKey - but I'm unsure on what object, or what service I need to use in order to look up the pricing information?
Currently I have this lookup that is working correctly for retreiving the relevant data:
Based upon documentation, I was working on gathering the pricing data for the items in reference by:
What is the best method to retrieve the relevant CatalogKey for my loaded data?