GDrive Fetch Folder

GDrive Fetch Folder

Hi ya.
I have a simple work flow that will create a set of folders for an Account record in Zoho Flow.   We pass the Account Id to the flow and it does the following.

1. Zoho CRM Fetch Module (Accounts) used to get the account record from Zoho CRM.
2. Run a deluge Function to determine the name of the parent folder. It takes the first letter from the account name and determines the appropriate name for the parent folder - for example, if the account name was  "Xenobite Corp" the parent folder would be "V-W-X-Y-Z"  which itself sits in the root of a shared drive called Accounts
3. Pass the parent folder name (ie. "V-W-X-Y-Z" to  Google Drive Fetch Folder Folder name variable
4. Use Google Drive Create Folder - Passing the Account Name as the Folder Name and passing the resulting folder id from step 3, above and use it as the Custom Value for Parent Folder 
I then use the folder id of the Account Name folder from step 4 and create three additional sub-folders, called Consulting, Advisory and Admin respectively.

Ideally, this should result in the following:

Share Drive: Accounts\
                        - V-W-X-Y-Z\Xenobite Corporate\
                              - Consulting
                              - Advisory
                              - Admin
      
However, step 3 (which finds the parent folder (V-W-X-Y-Z) does not seem to be working. Instead, I get the account name folder being created in my personal drive.   

So my issue is, how do I get the folder ID based on the names of a folder (e.g. "A-B-C" or "D-E-F") that sit in the root of share team drive?


    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