Don't have Telegram yet? Try it now!
https://ajitpatra.com/2018/10/22/d365-v9upgrade-button-enable-rule-custom-js-code-gives-error-cannot-read-property-getformcontext-of-undefined/
D365 V9{Upgrade}: Ribbon Button Enable Rule Custom JS Code gives error "Cannot read property 'getFormContext' of undefined"