Adding a department assignment to a project or job using deluge / Flow

Adding a department assignment to a project or job using deluge / Flow

I'm working on getting Zoho People to add the same three departments to each project and job. I'm attempting to use Zoho Flow to accomplish this but there doesn't seem to be a way to add a department via Zoho Flow. Which leads me to create a custom function which isn't working

  1. void test(string RecordID)
  2. {
  3. param_map = Map();
  4. param_map.put("ProjectUsers","507725000099123456");
  5. param_map.put("recordid",RecordID);
  6. response = zoho.people.update("P_TimesheetJobsList",param_map);
  7. }
The record ID is fetched earlier in the workflow passed on this screenshot (not sure if I set this up correctly):