Hello all,
I have had some success with using the Smartsheet API using the PythonSDK. I am currently using Control Center to create some projects, but they get created in a workspace instead of a folder within a workspace. I have had some success with using the Smartsheet API using the PythonSDK to do something similar, so I figured I could fix my issue with the API. However, I don't have the ability right now to set up a Python environment with a "listener" for a lack of better terms. So, the next thought was to use Bridge as the listener and use the Javascript component along with the JavascriptSDK to move the sheets to the folder that I want. The flow is like this:
- Event
- New row added to the Summary Sheet (Control Center)
- Get Row (Bridge)
- Get the name of the project (Also the name of the project folder)
- Get the corresponding Team Member (Also the name of the Level 1 folder that holds the Level 2 folder that we will be placing the sheet in).
- Javascript (Bridge)
- List the folders in a specific workspace and find the one that is equal to the name of the project.
- Grab the sheet that is within that folder.
- Move to the folder that is equal to the Team Member that was collected in Step 2.
- Place the sheet from 3b in the level 2 folder that is equal to "Group Sheets".
I'm not sure how to get this to work correctly as it seems that everytime I try to even just LIST the folders in the workspace, it doesn't work. I'm assuming that there is going to have to be some cross-play between the Call API and Javascript modules possibly?