https://www.d365snippets.com/2021/11/chain-of-commands-in-d365-with-example.html