I'm having trouble writing the command/javascript for a custom button in Dynamics.
I want to be able to press a button in Dynamics which calls a flow to do various things e.g. update the status of a record and start an approvals process - all I want to send is the record GUID to flow so that I can trigger the relevant actions in Flow.
Kind of similar to this but instead of var pathObj being a fixed string I want this to be the record GUID
var pathObj = { "path": "/Account/" };https://community.dynamics.com/crm/b/magnetismsolutionscrmblog/posts/how-to-trigger-a-microsoft-flow-from-a-custom-button-in-dynamics-365
Can someone help me with what the JavaScript command would look like which is called on the button? I know it's probably very simple but I've read endless blogs and spent all day tearing my hair out trying to do it. Feeling very defeated 😞