I have a requirement mentioned as below:
- I have to create a new graph.
- Implement a button on this graph.
- On this button click have to Get/Update specific Product data with some additional details.
I am trying to use core connector Product Data Get/Update resources for my new Graph, similar to SPStockItemProcessor graph but is not working.
Please find below details that I have tried as a part of customization:
- Created graph - Please find attached ‘Test Graph Code’ document for reference.
- Created aspx page and defined button - Please find attached ‘aspx Code’ document for reference.
- Getting object reference error and on debug find out productDataProvider object getting null.
public PXAction<KNSPPLMetaFieldsFilter> CreateStockItem;
[PXUIField(DisplayName = "Get Product Details")]
protected virtual IEnumerable createStockItem(PXAdapter adapter)
ProductData data = productDataProvider.GetByID("6618593099970"); // productDataProvider getting null
Can someone suggest the best possibility way to achieve this please.
Thank you in advance !