Zoho People to Dynamics 365 payroll, over SFTP with SSH keys
A client moving payroll to Microsoft Dynamics 365 needed their employee, compensation, leave, travel allowance and expense data sent over from Zoho. They chose CSV files on an SFTP server over an API integration because it cost less. Zoho People’s own SFTP sync only covers employee data and only logs in with a username and password, and their security team only allows SSH keys. So Deluge functions build the CSVs, and a small Zoho Catalyst function in the middle delivers them with a key.
- Zoho People
- Employee data only
- Password login, refused
- People + Expense
- Deluge builds CSVs
- Catalyst, SSH key
- Dynamics 365
What the client needed
The client was moving their payroll into Microsoft Dynamics 365. I had already implemented Zoho People for them, so everything payroll needs was in Zoho: employee records, and compensation details in the Compensation module. The job was getting that data into the Dynamics 365 payroll module so they could run payroll there.
API or SFTP
Their Dynamics 365 partner offered two ways in: an API connection between Dynamics 365 and Zoho People, or files dropped on an SFTP server in the format the partner expects. With budget a real constraint, the client went with SFTP because it was cheaper.
Why Zoho People’s SFTP sync wasn’t enough
Zoho People can already sync to an SFTP server out of the box, but only for employee data. Payroll needs more than that. It also needed leave information, travel allowances, and some data from Zoho Expense.
So I wrote Deluge functions that pull the data through the Zoho People APIs, then use the Zoho Sheet APIs to shape each CSV into exactly the format the Dynamics 365 partner was expecting. They run on a schedule.
The snag: SSH keys only
Sending the files from Deluge directly would have been the simple ending. But Zoho’s SFTP connection only logs in with a username and password, and the client’s security team refused a password login outright. They only allow SSH keys, and they’re right: a password on an SFTP server is a security risk.
That ruled out sending straight from Zoho People to the SFTP server.
The fix: a Zoho Catalyst function in the middle
I suggested to their head of IT that we put a small piece of middleware in between, built on Zoho Catalyst. Catalyst’s free tier is generous enough to cover everything this integration needs, so it added no real cost.
- Deluge builds each CSV from Zoho People, Zoho Expense and Zoho Sheet, as before.
- Deluge posts the file over HTTPS to a Catalyst function instead of trying SFTP itself.
- The Catalyst function, written in Node.js, logs in to the SFTP server with the SSH key and uploads the file.
- Dynamics 365 picks the files up from the SFTP server and payroll runs from there.
The security team gets key-based access only, the client avoids the cost of an API project, and the data still comes straight from Zoho.
Connecting Zoho to another system?
Tell me what needs to move where, and I’ll tell you how I’d build it.
Start a conversationAlexander Haldaman · haldaman.io/blog/zoho-people-dynamics-365-sftp-catalyst/