Let’s say you would like to close a Dynamics 365 activity through USD. There is an action in the CRM Global Manager called CloseActivity that makes this very easy.
Let’s say we have the following activity in Dynamics 365, which is of type Phone Call:

We can set the state and status code/reason based on the values here:
| State/State Code | Status Code/Reason |
|---|---|
| 0 : Open | 1 : Open |
| 1 : Completed | 2 : Made |
| 4 : Received | |
| 2 : Canceled | 3 : Canceled |
Run this through the debugger:

The activity in Dynamics 365 is now Completed:


Keep learning. Keep building.
Explore AI, agents & Microsoft technology.
I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.
Subscribe on YouTube →Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert