I know, to use SSOM it must be deployed on same farm. Is there any way to use SSOM to work with Sharepoint Online? Thank you.
The clear answer is
No, You cannot use Server Object Model in SharePoint Online.
So what may be an alternative?
- Also, SharePoint Online does not entertain any deployment of managed CSOM, you can code your requirement to SharePoint Provider Hosted Add-in.