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):

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now