The Status fields are used to filter what type of records we can update or not, the active records will be able to make updates, but the inactive records we will not be able to make updates. You can update the status (statecode) and the status reason (statuscode)
Statecode value: 0 - Active, 1- Inactive
Statuscode values: 1 - Active, 2 - Inactive
In the demo, I created custom values for the Status Reason field, for In-progress, Cancel, and Complete these are not single value numbers they start at 860530000...002. You can change the code accordingly to update the status for the record.
In this video, I will demonstrate step by step how to use the Patch function and update the state codes and Status codes.
Please Subscribe and Like the Video! We need your support to make more videos and be able to create more content!
THIS VIDEO HAS A BLOG POST!
https://abesaldana.com/powerapps-canvas-using-status-fields-in-cds/
watch?v=qgq8f5dmIkU