pipedream
pipedream copied to clipboard
[ACTIONS/SOURCES] Zoho Projects new actions and sources
Actions
- [x] Create Bug | Creates a bug. See the docs here
- [x] Create Milestone | Creates a milestone. See the docs here
- [x] Create Project | Creates a project. See the docs here
- [x] Create Task | Creates a task. See the docs here
- [x] Create Task List | Creates a task list. See the docs here
- [x] Update Project | Updates a project. See the docs here (There is an API limitation when I tried to update the status to
archivedof the project returning{"code":6403,"message":"License does not allow further operations"}) - [x] Find Project | Lists the modules across the portal based on the search term. The API returns both active and archived projects for the users having admin privileges. See the docs here
- [x] ~Add Log Time | Add Time for a General Log. Adds the time log to other tasks. See the docs here~ (It returns this error in the response
You cannot access Timelogs in your current plan. Upgrade to Premium to unlock Timelogs.) - [x] Upload File | Uploads a document to the project. See the docs here
Sources
- [x] New Bug | Emit new event when a new bug is created. See the docs here
- [x] New Milestone | Emit new event when a new milestone is created. See the docs here
- [x] New Project | Emit new event when a new project is created. See the docs here
- [x] New Task | Emit new event when a new task is created. See the docs here
- [x] New Task List | Emit new event when a task list is created. See the docs here
- [x] ~New Log Time | Emit new event when a log time is created. See the docs here~ (It returns this error in the response
You cannot access Timelogs in your current plan. Upgrade to Premium to unlock Timelogs.) - [ ] ~New File | Emit new event when a new file is created. See the docs here~ According to last email sent by support team, there is no Zoho Projects endpoint to get a list of files created in this platform but in Zoho WorkDrive. So my suggestion is to create another source component in Zoho WorkDrive app where we can listen for these new files being created
Email 1
Hello Jorge,
Thank you for your patience.
Upon checking with our development team, you are availing WorkDrive and the following v3 API's were suggested:
Create/Upload a Folder and Upload file(s):
URL - https://projectsapi.zoho.{com/eu/in}/api/v3/portal/{portal_id}/documents/thirdparty/files/{thirdpartyfolder_id}
Method - POST
Scope: ZohoProjects.documents.CREATE, WorkDrive.workspace.ALL, WorkDrive.files.ALL
Params:
service - workdrive
folder_name - (optional)
folder_include_files - (optional) (boolean - true/false) --If true, the new folder will become the parent folder for the files instead of the one in the URL--
upload_file - can upload 10 files in a request.
Get Associated Team Folder(s):
URL - https://projectsapi.zoho.{com/eu/in}/api/v3/portal/{portal_id}/projects/{project_id}/folders
Method - GET
Scope: ZohoProjects.documents.READ, WorkDrive.team.ALL, WorkDrive.workspace.ALL, WorkDrive.files.ALL
Kindly check by using the API's provided above and check if there is a response for the API call used.
Please reach us back if there are any concerns, so that we can check and assist you further.
Regards,
Fredrick.
Email 2
Hello Jorge,
Thank you for your patience.
Our developers have suggested the following documentations, with regards to your request for sample responses to the previously provided v3 API's:
To upload a file:
https://workdrive.zoho.com/apidocs/v1/filesfolders/uploadfile
For creating a folder:
https://workdrive.zoho.com/apidocs/v1/folders/createfolder
To Get Team Folder info:
https://workdrive.zoho.com/apidocs/v1/teamfolder/getteamfoldersinfo
Hope this helps. Email us if you have any queries in future, we will be glad to help you.
Regards,
Fredrick.
Email 3
Hello Jorge,
My sincere apologies for the very delayed response.
To know more about API endpoint to get the file/ folder info, access the help link provided below:
https://workdrive.zoho.com/apidocs/v1/filesfolders/fileinfo
To get all the files and folders from a team folder, access the help link provided below:
https://workdrive.zoho.com/apidocs/v1/teamfolder/getteamfolderfiles
Hope this helps.
Regards,
Fredrick.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated |
|---|---|---|---|
| pipedream-docs | ✅ Ready (Inspect) | Visit Preview | Sep 12, 2022 at 8:32PM (UTC) |
| pipedream-docs-redirect-do-not-edit | ✅ Ready (Inspect) | Visit Preview | Sep 12, 2022 at 8:32PM (UTC) |
Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:
- [ ] Create components to address specific use cases whenever possible
- [ ] Component
keys should follow the formatapp_name_slug-slugified-component-name - [ ] Components should follow the standard directory structure
- [ ] Prefer Node.js client libraries to REST APIs
- [ ] When making API requests, handle pagination to ensure all data / events are processed
- [ ] Use
secretprops to capture sensitive data - [ ] Props and methods should be defined in app files whenever possible
- [ ] Document methods with JS Docs
- [ ] Use
optionalprops whenever possible, and set adefaultvalue where you can - [ ] Use async options to accept user input wherever possible
- [ ] Create subscription webhooks sources (vs polling sources) whenever possible
- [ ] Always emit a
summarywith events - [ ] Use a built-in deduping strategy wherever possible
- [ ] When building webhook sources, follow these best practices
- [ ] When building polling sources, follow these best practices