Don't have Telegram yet? Try it now!
https://ajitpatra.com/2018/10/28/d365-v9upgrade-sharing-record-using-web-api-and-custom-action/
D365 V9{Upgrade}: Sharing record using Web API and custom action