hi,
Is there a way to import metafields from BigCommerce to Acumatica?
hi,
Is there a way to import metafields from BigCommerce to Acumatica?
Best answer by smarenich
Hi
I have noticed 2 problems:
First
BCSalesOrderProcessor _processor = PXGraph.CreateInstance();
Please do not create a new graph, it will significantly slow down the performance, you can use instead
var client = BCConnector.GetRestClient(Base.GetBindingExt());
Second, you may need to pass some parameters to filter, I have noticed we are passing namespace and key to get metafields
orderMetaFieldDataProvider.GetAll(new FilterOrderMetaField { Key = BCObjectsConstants.ImportedInAcumatica, NameSpace = BCObjectsConstants.Namespace_Global }, syncstatus.ExternID).ToList()
Also please test metafields request with your store using postman or https://developer.bigcommerce.com/api-reference/b3A6MzU5MDQ4MzE-get-metafields.
For instance your token may not have access rights to metafields.
If you still get a NullReferenceExceltion, please add here stack trace of the error.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.