OneDrive: Create and Share One Drive Folder Based on Data in a Gravity Form Submission
planned
Neil Patel
I have gravity form and zapier integration. What I would like to achieve the following:
1) Submit Gravity Form > Check If Folder Exists on OneDrive (Folder name = FirstName_LastName)
2) If the folder exists go to step 4
3) If a folder does not exist, then copy the existing "template folder" and rename it to match "FirstName_LastName" (Field values from Gravity Form)
4) Share folder "FirstName_LastName" with the user who submitted the form using the email they provided
5) Set permission for "FirstName_LastName" for user to read+write
6) Notify Admin that the folder was created and shared
---
API: https://docs.microsoft.com/en-us/graph/api/driveitem-invite?view=graph-rest-1.0&tabs=http (add permissions)
Log In
Katerina Benova
planned
Katerina Benova
Hello Neil Patel. If you need help with setting up your scenario, please contact our support. If you need some new feature, can you please specify which endpoint from OneDrive API you would like us to implement? We can only implement functionality provided by OneDrive API: https://learn.microsoft.com/en-us/graph/api/overview?view=graph-rest-1.0
We already have modules for 'Search folders', 'Create a folder' and 'Get a Share Link'. We could try to implement 'Send a sharing invitation' (https://learn.microsoft.com/en-us/graph/api/driveitem-invite?view=graph-rest-1.0&tabs=http) if you don't want to or can't use the 'Create a Share Link' module.
Please let me know if we should explore the 'Send a sharing invitation' API endpoint or if you would like to implement some other endpoints.
====
UPDATE: Sorry, the above mentioned module 'Get a Share Link' is available only for files, not folders. I will explore if the 'Invite' endpoint works for files and folders.