I am trying to import product table data using Azure data factory to Dynamics 365 sales and it is being imported successfully. However all the products are in draft state, even though I had set the statecode (Status) value to 0 as in the documentation, 0 is supposed to be the value for Active.
Asked
Active
Viewed 643 times
2

Arun Vinoth-Precog Tech - MVP
- 22,364
- 14
- 59
- 168

Anant Rai
- 49
- 3
-
Do you have follow up questions? – Arun Vinoth-Precog Tech - MVP Sep 06 '20 at 12:39
2 Answers
1
You can try to update both "statecode" and "statuscode" with valid values as they are related to each other, maybe "statuscode" holds non valid value that prevents you from updating the "statecode.
check the below URL for more info: https://powerobjects.com/2020/03/11/how-to-programmatically-set-the-status-code-field-of-a-dynamic-entity/

Abdallah Sayed
- 105
- 1
- 8
1
Dynamics CRM OOB Product entity is little different. You have to publish the created products in draft by default.
You can change the system wide setting though.

Arun Vinoth-Precog Tech - MVP
- 22,364
- 14
- 59
- 168