Box is a cloud-based content management system that includes collaboration, security, analytics, and other features related to information and file storage.
There are two session types, each allowing you to do certain tasks.
User - tasks specific to an individual user
Enterprise - tasks for the entire company
Create a Box steps integration in Torq
Go to Build > Integrations > Steps > Box and click Add.
Enter a meaningful name for the integration and click Add.
In your Box Developer account, enter the application you want to connect to and go to Configuration.
Copy the Client ID under the OAuth 2.0 Credentials and paste that into the Client ID form in Torq.
Click Fetch Client Secret and copy that into the form in Torq. To retrieve the Client Secret, your Box enterprise must enable two-factor authentication.
Use Box steps in Torq
All Box steps require passing an access token as an input parameter. To generate an access token, you must execute the step Create a session.
Create a Session
Select enterprise session for steps requiring the enterprise account and user session for steps running in an individual user's account. You will need the enterprise or user ID, which can be found in Box's General Settings.
After creating a session, you can proceed with any of the Box steps Torq has included or create an HTTP step of your own.
Search Content
Use the Access Token created in
{{ $.create_session.api_object.access_token }}
Search for the information you would like to find, using quotation marks for exact matches (e.g: “John Doe” and not “john doe”)
You may search for multiple items simultaneously using the AND, OR, and NOT operators. For example, John Doe AND “Mississippi” OR torq will get you all the files that include mentions of both John Doe (or john doe) and “Mississippi”, or that include Torq or torq.
You can also limit more of the search, including a limit of items, types of files, and more, by opening the Manage Parameters icon.
Premade Steps
Create a folder
Create a session
Delete a file
Delete a folder
Get file information
Get folder information
Get users in the enterprise
List items in a folder
Lock a file
Search content
Set file permissions
Set folder permissions
Unlock a file
Update a file
Update a folder