A community space to collaborate on Box APIs, explore SDKs, and build powerful applications
Recently active
I’m utilising the Box Sign Events API to construct my workflows. The API provides capacity to monitor the sign document when it is converted to a .pdf file, using the SIGN_DOCUMENT_CONVERTED event. However, this event does not seem to trigger - I’ve tried using different sign document file formats. They all get successfully converted to a PDF for signing, but the CONVERTED event never seems to show up in the enterprise events stream (admin_logs_streaming). Similarly, I’m also not able to trigger the SIGNER_DOWNLOADED event - the documentation states that: “A SIGNER_DOWNLOADED event_type is produced when a signer downloads the signing document.”, but when I test this out, I only receive an additional SIGN_DOCUMENT_VIEWED_BY_SIGNER event (note that this isn’t the event upon opening the sign document email, but an additional one when I click the download button in the Box sign UI). Is this an intentional behaviour? If so, how do we trigger the SIGNER_DOWNLOADED event? Could someone please
Hello Box developer community, I hope you are all doing well. I have a query regarding the download of text representations for files, specifically for files that are quite large, for instance, around 5GB in size. I understand that Box provides the ability to download files using their API, and I’ve been successfully using it for smaller files. However, I’d like to know if there are any limitations or best practices when it comes to downloading the text representation of large files, especially when they are significantly larger, like the 5GB example. Specifically, I’m interested in knowing: Size Limitations: Are there any size limitations when it comes to downloading the text representation of a file? Is there a maximum file size that should be considered when requesting text content? API Rate Limit: Does Box have any rate limits or throttling in place for downloading large files? Are there any guidelines on how to handle rate limits, especially for large downloads? Optimizations: Ar
Hi, I’m trying to figure out why our app integration no longer opens successfully, it shows “403 forbidden” when opening the app via Box (in a new tab). From our logs it looks like it stopped working August 22th (the oath endpoint haven’t been called since then). Have something changed in how Box calls the authentication endpoint? Its this network call https://app.box.com/index.php?rm=box_openbox_post_form&url=[...] that returns a 403. See screenshot: When i call the url specified in the query parameter above manually with a POST it returns a redirect which can open the app successfully so I suspect something might have changed on Box end. Any ideas or suggestions would be appreciated. Thanks
Is there a flow bulk pattern for creating Box Folders with default batch size of 200. When I insert 200 custom object records, I want 200 box folders created. Reducing batch size works, but not ideal. In the debug logs I see multiple SOQL queries executed by the Box managed package for a single Folder create which ends up tripping the salesforce limits - An Apex error occurred: System.LimitException: box:Too many SOQL queries: 101
You may have heard during our recent BoxWorks product keynote, that we’re making the Box Platform even better with all new Box AI APIs. Soon you will be able to leverage Box AI APIs within your custom apps to both meet your business’ unique needs and extend the power of your enterprise content — all while maintaining content security and compliance requirements. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/sneak-peek-at-box-ai-api-d1f6e69a3e92?source=rss----a995c24848a3---4
when I run flow to create a folder for a couple of records (using data loader to update the records to meet the criteria) I get this error “Error Occurred: An Apex error occurred: box.Toolkit.BoxApiException: Unable to create a folder for record id 5002M00001ZXLc4QAH - Details: The folder was returned with a null id.” however when I go to this record and updated to meet the criteria to trigger the flow the folder gets created without any issue any idea why I get this issue? the flow run Asynchronously using BOX Apex “create folder”
This is happening only when the record doesn’t have a folder created but once the folder gets created the message will be gone this is very inconvenience for the users, is there a way to prevent it from showing up also, this is only happening with content explorer component
Hi Everyone, I am configuring the Box App and setting up the BOX CLI. After executing the login command and entering the client ID and client secret,and granting access,I am redirected,and the following message appears: (node:7544) UnhandledPromiseRejectionWarning: BoxCLIError: Error: Unexpected API Response [403 Forbidden] at C:\Program Files (x86)@boxcli\client\src\commands\login.js:122:11 (Use node --trace-warnings ... to show where the warning was created) (node:7544) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see Command-line API | Node.js v21.2.0 Documentation). (rejection id: 1) (node:7544) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections
Hi, I’m part of an IT company and one of our clients has been using Box since before we started managing them. We’ve been trying to handle an issue with the permissions and so far, we haven’t been able to find a good solution. Box support was not helpful, and I spent some time learning the CLI, but I’m still struggling to figure anything out. Anyways, here is the problem: The file structure that they have set up does not work with the way Box handles permissions. The situation is they have a folder titled “Human Resources”. In this folder there is an “Employees” folder and each employee of the company has their own subfolder. Within each employee’s folder, there are two subfolders. One of these subfolders is called “Confidential” and should only be accessed by HR. The other subfolder is “Personnel” and should be accessed by HR and Accounting. Since Box forces their waterfall/inheritance permissions model, we are not able to make this work. If we give read access for Accounting to the “
Happy BoxWorks 2023! If you haven’t signed up for the event yet, its not too late to join in the fun. There are four developer focused sessions on using Box Platform and a wealth of other cool demos and announcements you won’t want to miss. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-salesforce-box-sign-writeback-flow-f4e050f2f60b?source=rss----a995c24848a3---4
Hi, When “Restrict content creation” is enabled in the Enterprise settings, the following CLI command produces a 403 error. $FolderID = 1234567890 $OwnerPre = 1234567891 $OwnerAft = 1234567892 $CollaborationID = box folders:collaborations:add $FolderID --as-user=$OwnerPre --role co-owner --user-id $OwnerAft --id-only box folders:collaborations:update $CollaborationID --as-user=$OwnerPre --role owner If I uncheck the “Restrict content creation” box, it succeeds, but is there any way to succeed with the box checked? Sincerely,
With plenty of sessions to choose from, it can be overwhelming to decide which ones are most relevant for developers and admins. To help you make the most of this event, I’ve curated a list of must-attend sessions that will empower you with valuable insights and practical skills. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/must-attend-sessions-for-developers-and-admins-at-boxworks-2023-bf6f210f0635?source=rss----a995c24848a3---4
What is the best way to use the Box API to get all shared links created by a specific user?
Hello. I would like to update the tracking code in PowerShell, but when I run the following code, I get a 400 error. $token = "<access token>" $uri = 'https://api.box.com/2.0/users/<user id>' $headers = @{"Authorization" = "Bearer " + $token} $body = [System.Text.Encoding]::UTF8.GetBytes("tracking_codes": [ { "type": "tracking_code", "name":"<tracking code name>",value":"<tracking code value> "}]) Invoke-RestMethod -Method Put -Uri $uri -Headers $headers -Body $body -ContentType 'application/json' ▼Error content + Invoke-RestMethod -Method Put -Uri $uri -Headers $headers -Body $body ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand Could you please let me know if there is any part of the code that is wrong?
Hi folks, We’ve announced the Box Advanced Collection for Postman. You can read about it via our Medium article: Medium – 5 Oct 23 Box Postman advanced collection In this article we'll explore how we've converted the pre-request script to handle any type of Box application authentication, giving… Reading time: 6 min read But most important you can try it out. Click this link to fork the collection to your Postman workspace. Keep the feedback flowing! Enjoy
Our Use Case: We are a SaaS vendor with security concious enterprise customers. We recommend that our customers connect their cloud storage provider (e.g., Google Drive) so that we can import configuration files and export report files. We would like to add Box to our list of supported cloud storage providers. We would be implementing a Box custom app. Our current recommendation to our customers for other cloud storage providers: Create a cloud storage user account specifically for our app, with access only to folders intended for import/export. From within our application, the organization admin enables the integration to their cloud storage provider (we have a plugin/app concept). On integration enablement, we start an OAuth2 flow; the customer enters the user described above, and we obtain the temporary code (i.e., ?code=… on the redirect). We immediately send the temporary code to our server. The server exchanges the temporary code for a refresh token (i.e., this is to avoid the c
In this article we'll explore how we've converted the pre-request script to handle any type of Box application authentication, giving developers greater flexibility in using the API collection in their development process. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-postman-advanced-collection-8c43c021ed2a?source=rss----a995c24848a3---4
Hi! We have gotten a report of an “access_denied_insufficient_permissions” error when our connector is trying to fetch users via the “https://api.box.com/2.0/users” endpoint. The authentication works as expected. These are the permissions setup in the app: Manage users Manage enterprise properties They are reporting that they are using Box for education. As far as I can tell Box for education is either Enterprise or Enterprise Plus at a discounted price, and not a separate product. Or are there any API limitations for education plan customers and this is expected behavior?
I see that box allows me to upload a folder containing multiple files. Is there any way to do that all the files in the folder have been uploaded, I am looking at webhook but could not utilize this event because FOLDER.CREATED is issued before all the files have been uploaded.
In this article, we’ll dive into the world of the Box Platform file representations, exploring their capabilities using the Python SDK. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/unleashing-the-power-of-file-representations-with-box-a3bb871cd1da?source=rss----a995c24848a3---4
Hi, We are using the open-source tool grouper for managing the groups in BOX. The grouper uses the Box SDK to query the users or groups, manage the groups, and manage the group membership. The Box API throws a 503 error randomly while querying users or groups. Please review the error message and let me know if you need anything. type: consumer, finalLog: false, state: init, consumerName: provisioner_incremental_boxProvisioner, totalCount: 147, currentSequenceNumber: null, publisherClass: edu.internet2.middleware.grouper.app.provisioning.ProvisioningConsumer, runId: vuk1k5nv, exception: java.lang.RuntimeException: provisionerClass: GrouperBoxProvisioner, configId: boxProvisioner, provisioningType: incrementalProvisionChangeLog, state: retrieveIncrementalTargetData, changeLogRawCount: 147, changeLogItemsApplicableByType: 106, recalcEventsDuringFullSync: 0, checkErrors: all, syncGroupsToQuery: 20, syncGroupsFound: 1, retrieveSyncGroupsMillis: 1, syncGroupCount: 1, filterByNotProvisionable
Writing your first Box app is sort of magical, in a couple of hours you can go from having nothing to integrating with a bulletproof cloud filesystem Wondering how I did it? Well, strap in because we’re about to take a magical tour through the Box SDK and navigate through the ocean that is its first developer experience. What we’re trying to do? I will show you how to overcome the most common issues with the Box Node.js SDK, when building something for the first time. By the end of this article, you’ll be a certified Box ninja, able to effortlessly chop, kick, and grab data from Box with Javascript. The Box SDK provides a sweet wrapper around the Box API, making incorporating fancy file features into your node apps simple. Like most beautiful things in life, however, there are some gotchas when getting started that you will learn by reading this article, and you will be glad that you did. By the way, I used Dashcam to take video clips of the flow and bugs discussed below! Issue #1: Mis
Hey all, sorry if this question has been asked before, I couldn’t find anything with a search. We are currently using the box SDK for salesforce and we are trying to insert around 5 subfolders and 1 root folder in one transaction. Currently we are using single call outs for ever folder but are wondering if there is a way we could use 1 call to create multiple folders. I haven’t found any documentation for anything other than single folder creation in both the SDK and the toolkit documentation. I was wondering if there are any solutions to this or if we only get the single call out for folder creation? Thanks!
Hello! I am trying to use the API to add a security classification to a folder and then create a metadata cascade policy so that the classification cascades to anything added to that folder. I can add the classification successfully through the API, but I cannot create the metadata cascade policy. In Postman, my request body to create the metadata cascade policy looks like this: { "folder_id": "12345678901", "scope": "enterprise_XXXXXX", "templateKey": "securityClassification-6VMVochwUWo" } But this returns a 404 error. Is there something wrong with my request? Or am I missing a step somewhere else? I’m able to do this successfully through the Box CLI, but not by making API calls through my integration app (which uses OAuth 2.0 w/ Client Credentials Grant (Server Authentication)).
I have a tiny Python utility that checks for the existence of Autocad .dwl files every 20 seconds in about a hundred folders on my computer. Several co-workers use the same app on their computers. The problem is the time lag between the creation of that file on one co-worker’s computer and its arrival at my computer (and those of the other guys too). One of them suggested I could use the Box API to maybe reduce the time lag. I’m hoping one of you might be willing to help me make the first steps if this is possible. Thanks.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.