-
Recently active
Hi,We have a need to upload documents to one of our clients. The uploads will be done via a command line Windows app written in C# using the Box .NET SDK. We have this already in place for 2 other clients which I’ve done by creating a Platform App for each client. Each Platform App uses the OAuth 2.0 with Client Credentials Grant (Client Id and Client Secret) for authentication. Following this pattern I created a Platform App for this new client and it’s awaiting Box Authorization. However, I can’t find my notes on what needs to be done by the client once the Platform App is approved. I believe something needs to be done with the Service Account ID once the App is approved, and they need also need to provide us with the ID of the folder in which we will be uploading documents to but I don’t remember the steps that were done for the other two clients.Can you provide me with any guidance on what needs to be done and/or point me to the Box documentation that describes this process.
CLI installation and command line Box login -n example_name > error as below How can I solve this error? Redirect URI = http://localhost:3000/callback client id and client secret may be correct. Error: redirect_uri_mismatch Show Error Details response_type=code redirect_uri=http://localhost:3000/callback state=ndJjebiBosm-3K06PdUAlZvCduS_ofoB client_id=clyd1w6ectfsns7p90uq2olth66ax69j
Hello,I was wondering why do the following upload methods return a list of files rather than one single file:Upload file POST "https://upload.box.com/api/2.0/files/content" Returns the new file object in a list.Upload file version POST "https://upload.box.com/api/2.0/files/12345/content" Returns the new file object in a list.I’m using the .NET Gen SDK which provides the `await boxClient.ChunkedUploads.UploadBigFileAsync` method that returns a single file instead of a list of files. Why doesn’t it return a list of files as the file is chunked? Thank you for the clarifications,Best regards,Antonin
I am trying to search if a folder exists within a parent folder My code returns all items in the parent folder parentFolder=folder = user_client_archive.folder(folder_id=mainFolderID).get() print("Parent Folder "+parentFolder.name) items = user_client_archive.search().query(query='MyFolder_NoCollab',ancestor_folders=[parentFolder],content_types=['name',]) for item in items: print(f'The item ID is {item.id} and the item name is {item.name}')
When displaying the attached image to users, I would like them to enter their Box-registered email address and password every time. How should I implement this?
We want to use hosted box file picker as followinghttps://app.box.com/index.php?rm=box_select_view&client_id=123&link_type=folder&multiselect=false&picker_id=uniquePickerIdFile selection works fine but we cannot select folders. Is there an option that we can use to enable folder selection as well?
Hi everyone. I’, relatively new in React and I’ve just started working with Box integration. I managed to use Box by referencing the versions available on Box's CDN (https://github.com/box/box-content-preview?tab=readme-ov-file#including-preview-as-a-library). But, I have the requirement to use it as a NPM package. I’m using React and when I try to install the box-ui-elements and use it, I get the error 00:30:52 [vite] error while updating dependencies:Error: Build failed with 3 errors:node_modules/box-ui-elements/es/elements/content-preview/ContentPreview.js:51:26: ERROR: No matching export in "node_modules/box-ui-elements/es/elements/common/annotator-context/index.js" for import "WithAnnotationsProps"node_modules/box-ui-elements/es/elements/content-preview/ContentPreview.js:51:70: ERROR: No matching export in "node_modules/box-ui-elements/es/elements/common/annotator-context/index.js" for import "WithAnnotatorContextProps"node_modules/box-ui-elements/es/elements/content-sidebar/Activ
I would like a simple working code example of uploading a file via the Chunked APIs using the Typescript SDKI have reviewed the documentation here:https://github.com/box/box-typescript-sdk-gen/blob/main/docs/chunkedUploads.mdhttps://developer.box.com/guides/uploads/chunked/?_gl=1*h4a2ux*_gcl_au*ODIyMTQzNzA5LjE3MzIxNDU5Mjk. and also all available support/community issues related to this but I have but not found anything that clearly shows me how to do itTask is simple: I want to upload a 70mb file using the Chunked Upload APIS (using Typescript SDK)The documentation here is unclear and does not show a proper example: https://github.com/box/box-typescript-sdk-gen/blob/main/docs/chunkedUploads.mdCan anyone kindly provide a simple example in Typescript that will show accomplish this task using the Typescript SDK (not the deprecated Node SDK)I know how to upload smaller files that do not require chunking that is fine, but when it comes to Chunking I believe the TypeScript SDK documentation
I am unable to figure exact syntax for mutiselect field to update metadata. When I attempt following then it throws errorawait boxService._client.FolderMetadata.UpdateFolderMetadataByIdAsync(folderId: "123", scope: UpdateFolderMetadataByIdScope.Enterprise, templateKey: "arms", requestBody: Array.AsReadOnly(new[] { new UpdateFolderMetadataByIdRequestBody() { Op = UpdateFolderMetadataByIdRequestBodyOpField.Replace, Path = "/doctypes", Value = "[\"test\"]" } })); Error:Encountered invalid value for template field key=doctypes I have no issues in using CreateFolderMetadataByIdAsync though.
I am using the Box Node SDK to upload a file, and the upload is successful because I have the file ID and can download the file. However, the issue I'm facing is that I cannot find the file or the folder I created when uploading it on the 'My Account' page.I would really appreciate any help. Thank you, everyone.
Hi, I am looking for enabling Box managed universal links for iOS devices. I want to set universal links for Box, that when a user receives an email with Box URL it will open the Box app instead of managed browser. Does anyone the correct format?
Does anyone have some sample code to upload a file with Python SDKGEN? (nothing fancy, just an small file, so I don’t need multipart uploads, etc). I see the following in the docs :parent_client.uploads.upload_file( UploadFileAttributes( name=get_uuid(), parent=UploadFileAttributesParentField(id="0") ), generate_byte_stream(1024 * 1024),)This seems overly complex and I’m not sure how to implement it. Do I really need the generate_bye_steam line? why? And am I supposed to import the UploadFileAttributes and UploadFileAttributesParentField functions and call them? Yuck. In the old SDK I just did this:new_file = box_client.folder(OUTPUT_FOLDERID).upload(file_name)
I’m runng a script on my local machine: from boxsdk import Client, OAuth2from boxsdk.exception import BoxAPIException# Authenticate with Boxoauth2 = OAuth2( client_id='xxxxxxxxx', client_secret='xxxxxxxxx', access_token='xxxxxxx' # Replace with OAuth token for production)client = Client(oauth2)try: # Get the root folder root_folder_id = '0' folder = client.folder(folder_id=root_folder_id) # Print basic folder information folder_info = folder.get() print(f"Accessing folder: {folder_info.name} (ID: {folder_info.id})") print(f"Total item count in folder: {folder_info.item_collection['total_count']}") # Retrieve and list items in the folder with a higher limit items = list(folder.get_items(limit=1000)) # Check if items are in the folder if not items: print("No items found in the root folder.") else: # Print details of all items in the folder for item in items: print(f"Item: {item.name} (Type: {item.type}, ID: {it
A government agency publishes a public folder to share a data set. I have no relationship with the publisher, thus no credentials. With the web browser interface, no authentication is required, works really well, can download every file. The Python SDK is getting super difficult for the task of accessing a public box folder. I can retrieve a list the file and folder names When I try to get anything with the file object file(file_id=item.id).content … download_url(), download… I get a 404 error, Not found. The assumptions I’m making: I need a developer account I need to create a custom app Select an auth method (e.g. OAuth) 3.5 Download the 3 secrets (client_id, client_secret, token) from custom app. Build a client object with the OAuth 5 With either the URL or the folderID get an object to the root folder. Iterate over objects in the root_folder Based on one post from Box engineer, I get the sense these developer accounts and credentials don’t give you “Permissions” on public folders
i can see svg inside html markup when it comes files extensions. of couse i can copy, paste and hardcode then. we’ve got box.com pckg installed on our salesforce orgthe question is - is it possible to find some inside the package or it always get rendered online?
I’m trying to experiment with the Box CLI as a proof of concept for Metadata querying. I’ve created a command like the one below and when I hit enter, it just sits there (one’s been going for well over 10 minutes) but no errors. What am I missing? box metadata-query enterprise_###.### <folderID> --query "projectNumber =:projectNumber" --query-params projectNumber=190153 --limit=10I’ve tried the same query with projectNumber=”190153” and get the same thingI’ve tried at different folder levels. I can create this same query in Web app and the decoded parameter isprojectNumber","value":{"enum":["190153"]} I’ve verified that my scope and template matches what’s returned in the Web App URL. The metadata field is a text value and I suspect that’s where my problem is. Thanks!
Hi there,We are also pleased to announce upcoming Box Platform Developer Day in Toronto! It’s an amazing opportunity to learn, code and connect with other developers from this area. We will be showing off the full gamut of developer options & tools, including getting started, SDKs, and Box AI. There will be also a session dedicated to leveraging Box for Salesforce integration for FinServ workflows.At the end of the day, we will also have a social mixer!Join us, November 20th, 12:00pm — 6:00pm!Register today! 🇨🇦
I’m current working on a .NET project to deprovision or remove access of a user from all the enterprise’s box contents. I did some research and learn that the steps involved 1. move the toBeDeletedUser’s ’ contents to a service account, 2. delete the user. I was looking into how to move the toBeDeletedUser’s content to a different user but seems like the documentation and code samples are all using Box.Core.V2. Has anyone been able to do so using Box.Sdk.Gen? I would greatly appreciate any advice.
Hi all,We're having an issue with content uploader. In case when not all files were upladed successfully "onComplete" event is not triggered. I found in the source code that there is a "isPartialUploadEnabled" property which allows "onComplete" to be triggered in such cases.This property is not documented in the docs nor in content-uploader readme when describing properties , but it's present in the exported interfaceMy question is can we use and set this option when calling uploader.show() or this is a subject to change and it’s not intended to be used when instantiating uploader instance ?
I’m using the following call to retrieve events from Box. EnterpriseEventsRequest request = new EnterpriseEventsRequest().types(eventTypes).limit(10).after(null).before(null) eventTypes is an array of BoxEvent.EventType. For all other events, DOWNLOAD, LOGIN, etc. the call is correctly returning only event types that match. When I use ITEM_CREATE or ITEM_UPDATE, the filter is basically getting ignored and it’s returning random events. I’m using the 4.11.1 version. Any ideas of what could be wrong?
Hi ,I have to use this UI elements and box preview api in angular project along with node >=18. please help me out which angular version was support for this.Thanks in advance
We need to know when folder has already been created inside app..box.comwe are using salesforce SDK likeresult = boxTools.createFolderForRecordId(recordId, null, true); system.debug('result:' + result); boxTools.commitChanges();it returns back new folder Id but there is a need to wait for some time to see the change both in salesforce and using a link like app.box.com/folder/{folderId}is it possible to achieve it?
I am using Box SDK to find a folder to which I am a co-owner. In the process I try to fetch all folders/items from root level (folder_id =0) and the total_count is always 15 while there are almost 26 items in it. Some folders are not showing up in the fetch list. Not sure why get_items is not pulling all the items at root level. Both offset and marker pagination is not working.Not sure what could be the cause. I asked a folder owner to create a new folder and add me as co-owner, still that folder is not showing in the fetch list either. No clue where the total_count is set and how to override it.
I’m a little bit confused. i can perform box.Toolkit toolkit = new box.Toolkit();system.debug(toolkit.getRecordIdByFolderId('286307925200'));and get the correct salesforceId without any authtorization. what did i miss?
Hi , I am getting below error when I do parsing using gson lib for BoxEvent.event is of type BoxEvent.gson.toJson(event)Class com.box.sdk.BoxUser$Info declares multiple JSON fields named 'login'; conflict is caused by fields com.box.sdk.BoxUser$Info#login and com.box.sdk.BoxCollaborator$Info#login Basically I want to create Valid Json of whole BoxEvent without any “\”” String escape. Please suggest suitable solution
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.