How to write back to SaaS and on-premises applications