All things API and SDK related
Recently active
In the world of collaborative document management, the ability to share files and folders seamlessly is paramount. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/demystifying-shared-links-a-developers-guide-c59a039ddbd1?source=rss----a995c24848a3---4
Introducing: Template APIs for Box Sign! Finally we can use the ‘/sign_request’ end point to create a signature request. Let’s start with the ‘template_id’: This functionality is currently broken. If a template_id is added to a sign_request, the request fails with a 404. Without the template_id, the sign request works as expected. The same 404 behavior is seen with the sign_templates/:template_id request to get a specific template by ID.
Looking to get advice on how to use content explorer and uploader in salesforce experience cloud as i seen in jan roundtable
Happy Dreamforce week 2023!I’m back again for a second time this week to show off a new Salesforce Flow template included in the Box for Salesforce managed package: Create Box Folder/Slack Channel Mapping. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-salesforce-flows-with-slack-integration-mappings-180e5a09e978?source=rss----a995c24848a3---4
Hey, I’m new to using box and I’m trying to explore the SDK/APIs. I want to generate a pre signed url (like in S3) to allow the user to upload files directly through my UI without having them interact with box. Also, is there a way to test the paid features like get a direct download link using my free dev account?
I am using the Box Sign API to create sign requests based on a sign template named “SimpleAckTemplate.pdf” for example. By default, both the sign document and the signing log would be named “SimpleAckTemplate (1).pdf” and “SimpleAckTemplate (1) Signing Log.pdf” respectively. I would like to change the file names using the “name” parameter in the API changing it to “SimpleAckTemplate_nnn” where nnn is our internal number. It seems to work partially as only the log file was changed. The sign file name was still defaulting to “SimpleAckTemplate (2).pdf”. I didn’t see another parameter in API that I can use. When making the sign request on Box Sign Web UI, both file names for log and sign would change per value specified on the “File Name” field. I don’t know what I am missing in the API. Thanks
I am having some issues with an Apache Groovy script. When users run this script it sometimes returns this error - it fails at the line def subFolder = parentFolder.createFolder(subFolderName).getResource() BoxAPIResponseException: The API returned an error code [404 | m75vwdhfthirxg8m.0155c36fdf223f6693c60b71343f0bfc6] not_found - Not Found Exception chain: ScriptException: com.box.sdk.BoxAPIResponseException: The API returned an error code [404 | m75vwdhfthirxg8m.0155c36fdf223f6693c60b71343f0bfc6] not_found - Not Found …caused by: BoxAPIResponseException: The API returned an error code [404 | m75vwdhfthirxg8m.0155c36fdf223f6693c60b71343f0bfc6] not_found - Not Found Some users have found clearing their cache allows them to then run this script The box folder has AutomationUser_1282163_2jhq1tTUma@boxdevedition.com as an Editor The file names are unique names and do not contain illegal characters The parent folder exists Here is the relevant code import com.box.sdk.BoxFolder def today =
Hi all, I’m using the boxsdk python lib to search for files, and then retrieve the file’s content as a string. Something like: search_results = box.search().query(<my_params>) for file in search_results: content = file.content() Problem is after this point, the Download API returns binary data that I can’t seem to decode, I’ve tried different encoding formats using python’s in-built decode, utf-8, ascii, iso, etc. Is there some way of properly decoding the binary data into string text? Of course, I’m aware this won’t work for most file types, but would at least like to get .doc, .docx, .txt files as a starting point. I also don’t need to store the content into a file locally, just need to output the file contents. Thank you!
I have created application with Client Credentials Grant and when i am trying to use it with box_subject_type=user. i am getting “Grant credentials are invalid” error. I have checked client ID and client secret and user ID. Also I have checked App Access Only as i am trying with user subject type Note: I am using newly created free account without any subscription or trial
The get sign templates listing API call is returning a 500 Internal Server Error for me. This seems to be irrespective of whether making the call as a particular user or standalone. API: https://developer.box.com/reference/get-sign-templates/ Call fails whether through code or just curl, e.g. curl -L -X GET “https://api.box.com/2.0/sign_templates” -H “Authorization: Bearer <ACCESS_TOKEN>” Response is HTTP Code 500 “Internal Server Error” Anyone else see this when making a call to that API endpoint?
I’m trying to authenticate with OAuth 2.0 and I keep getting 401 unauthorized errors. I know for sure that I’m using my correct Client ID and Client Secret, so I’m not sure what’s going wrong.
Hello Everyone, Yesterday I preparing to deploy Box to Salesforce Prod After the installation was done I kept getting an error from Box flow “Assign Box Permissions” Error element Create_Permission_Set_Assignments (FlowRecordCreate). This error occurred when the flow tried to create records: FIELD_INTEGRITY_EXCEPTION: The user license doesn’t allow Assigned Apps. You can look up ExceptionCode values in the SOAP API Developer Guide. any idea what happening I had to deactivate the flow
Are you ready to embark on a journey into the world of Box Platform?We’re thrilled to introduce our brand new self-paced, hands-on workshop that will help developers like you get started with the Box Python SDK while exploring the fundamental concepts of the Box Platform. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/announcing-the-box-python-sdk-workshop-unlock-the-power-of-box-platform-828c71afeeaa?source=rss----a995c24848a3---4
I was testing out bun instead of npm or node and I couldn’t get the same behavior: what I mean by that is that running the app with bun I was not able authenticate, but I was with node (see below example) https://app.dashcam.io/replay/64ff8108923289006233ea16 Any idea what might be causing that?
As per Box documentation, the clearCache function of Content Explorer should force reload the items. But when I call the same function, I don’t see any reload of items in Content Explorer widget. I am using Content Explorer version 17.1.0. /** Clears out the internal in-memory cache for the content explorer forcing re-load of items via the API. @public @return {void} */ contentExplorer.clearCache();
Happy Dreamforce 2023!Get ready to embark on a thrilling tutorial as we dive headfirst into using Salesforce Screen Flows + Experience Cloud alongside the Box API. This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/box-salesforce-screen-flows-with-experience-cloud-7f440a65c9?source=rss----a995c24848a3---4
We are referring the source code present in the following link: github.com box/box-java-sdk/blob/v4.4.0/doc/files.md#download-a-file Files ===== File objects represent individual files in Box. They can be used to download a file's contents, upload new versions, and perform other common file operations (move, copy, delete, etc.). <!-- START doctoc generated TOC please keep comment here to allow auto update --> <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> - [Get a File's Information](#get-a-files-information) - [Update a File's Information](#update-a-files-information) - [Download a File](#download-a-file) - [Upload a File](#upload-a-file) - [Upload Preflight Check](#upload-preflight-check) - [Upload a Large File in Chunks](#upload-a-large-file-in-chunks) - [Upload a Large File in Chunks Including Attributes](#upload-a-large-file-in-chunks-including-attributes) - [Upload a Large File Version in Chunks](#upload-a-large-file-
While checking pricing page in Box I saw we have 50000 API calls per month for Business Plan and for Enterprise we have 100,000 API calls per month. So, can anyone explain me how it’s work and where I can check how many requests are pending.
I have a folder ID and I have a leaf name. What I want is the full file details. At the moment I list the folder and look for the leaf name. This works but for large folders is very slow and requires lots of API calls. Is there an API which takes as input a folder ID and a leaf name and returns a file info just for that file? The best I’ve seen is get-search but that has several problems - it does a recursive search when given folder IDs which I don’t want, and I want an exact match for the file name, not a fuzzy one (its still fuzzy if you use “double quotes”). Any ideas? BTW this is for rclone!
Are you a developer looking to enhance the user experience of your web application when it comes to file and folder management? Look no further! This is a companion discussion topic for the original entry at https://medium.com/box-developer-blog/introducing-the-box-ui-elements-workshop-elevate-your-apps-user-experience-cfcbd05a0090?source=rss----a995c24848a3---4
I am using the following references, href="https://cdn01.boxcdn.net/platform/elements/16.0.0/en-US/explorer.css src="https://cdn01.boxcdn.net/platform/elements/16.0.0/en-US/explorer.js
Hi, a partners is sharing files with us through a box.com account. The files are store in folder tree. There are over 25K of files stored. We receive an xls files containing only filenames. We need to download files based on a filename but I do not know in which folder the file resides. I have made some attempts in python to search and download files, but it looks like my approach is incorrect or I am hitting API rate limits. I have noticed that if I have the file ID I can easily download the files, but I only have the filenames. What would be the best approach for me to create a automated solution using python and the box.com API? Would it be easy for the partner to give me the file_ids? Is there an easy way to retrieve those from all files that are uploaded? Or is there a fast way to search based on filename? I would love to hear what your approach would be.
I have a simple question, I am running a python script that searches for files regularly in box folders. Is there a way to refresh this box folder within my script? Thanks a lot.
I am using a python script to search for files in a specific folder, the folder contains over 25K files I have an excel with filenames that the script needs to search for. Part of the script looks like this: Start searching and downloading for file_name in file_names_to_download: print(f"Searching for {file_name} …“) search_results = client.search().query(query=f”{file_name}“, limit=10, ancestor_folder_ids=[folder_id]) exact_matches = [item for item in search_results if item.name == f”{file_name}"] if not exact_matches: print(f"No exact match found for {file_name}.") df.loc[df.iloc[:, 0] == file_name, 'Status'] = 'Not Found' continue if len(exact_matches) > 1: print(f"More than one exact match found for {file_name}. Using the first match.") item_to_download = exact_matches[0] print(f"Found {file_name}. Downloading ...") found_files.append(item_to_download.name) item_download_path = os.path.join(download_path, item_to_download.name) try: with open(item_downloa
I need to upload file into box without manual interaction using c#.net. As per the SDK, I need to pass access token & refresh token. How can I get Access token & refresh token from C#.net using client id & client secret without manual interaction. 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.