Losing "statecode" in Dynamics CRM inputs when toggling between Designer and Code View
When I toggle between the Designer and the Code View, I lose the "statecode" input element, and its value, for a Dynamics CRM Insert and Update ('patch' method).
When using Dynamics CRM entities, I need to set whether the record is 'active' or 'inactive'. Therefore, I need to correctly set both "statuscode" and "statecode". When "statecode" disappears, then subsequent LogicApp runs which change from active to inactive which encounter runtime errors due to failed validation as the new combination is invalid (the reason why both codes need to be set correctly)