Sample Synchronus & Asynchronous Codes For Dataverse Model Driven App to Enable/Disable Command Bar Button in Model Driven App Power Apps
Lets take a scenario on Command Button Enable Rule. Here is a Synchronus code. Here is the Asynchronus relevant code for above using Promises....