73.9 F
Tampa
Wednesday, March 29, 2023
spot_img

Latest Posts

FileMaker Dropbox Integration | DB Services

Dropbox is one of the top file-hosting platforms on the web currently. Established in 2008, Dropbox has over 700 million registered users. Along with file storage, they also offer a fantastic API to integrate the platform into your custom applications. Here, we’re going to cover getting started with your API application, and authentication, file upload, & file download from your FileMaker solution.

Getting Started

The first thing you’ll need to do is create a Dropbox account. From here, you’ll need to create an app.

Dropbox create an app

After selecting the above settings and naming your app, you’ll be brought to the app’s settings menu. Here you’ll find critical information for connecting Dropbox and FileMaker, including the App Key and App Secret, pictured below. You’ll want to store these two values in a secure location, as they are necessary for API functionality. In addition to those, you will also need a Redirect URI, which can be set to any valid web address.

Dropbox app settings

Our next step is setting the scope of the Dropbox app. These can differ based on user needs, but for our purposes, we’ll be enabling both read and write permissions for all scopes in the “Files and Folders” and “Collaboration” sections aside from “contacts”. Make sure to submit these changes before continuing on.

Dropbox app scope permissions

Authentication

Once you have your Dropbox app set up, it’s time to start implementing it into FileMaker. The simplest way to manage the credentials to your Dropbox application in FileMaker is to store them on a Preferences table, where you can update them and it will be accounted for in all areas simultaneously. The fields you should include are: App Key, App Secret, Redirect URI, Access Token, Refresh Token, and the Refresh Timestamp. If multiple users are going to be signing in to Dropbox and using the integration, the Access Token, Refresh Token, and Refresh Timestamp should be stored by user.

With this information added in, users added to the application will be able to sign into Dropbox and get their Access Token. This is done with a web viewer set to a login screen. After the user enters their information, they’ll need to accept terms based on the selected scopes. Note that if scopes change for the App, users will need to re-authenticate.

Filemaker dropbox login webviewer

After following these steps, FileMaker will store the tokens received and the user can begin using features of the integration.

Uploading Documents

One of the main draws of a Dropbox integration is being able to upload documents directly to your Dropbox folders from FileMaker. This has multiple purposes: it can be used to reduce the size of your FileMaker solution, allow you to access files from anywhere, or share the document with others that aren’t able to access FileMaker, among many other purposes.

As far as actually developing the process goes, it’s actually a multi-step process. The process consists of actually pushing the document to a specified path in Dropbox, then getting a “Share URL” from the host. This Share URL is what allows a user to access the uploaded document directly to work with it. Below is an example of what is returned from a successful upload of a document – providing the document path and other identifying information.

Dropbox filemaker sucessful upload return

Additionally, the expected payload for creating a Share URL will look like the following, in addition to various tags that include whether a password is required or if the document can be downloaded.

Filemaker dropbox integration share url payload

Download Documents

In addition to uploading documents, you’re also able to download documents you’ve uploaded to your device. The process here is much less involved than uploading. Here, all you need is the direct path the file is stored at in Dropbox. You’ll then run a cURL to insert the binary file at the specified path into a container as an intermediary, then a standard Export Field Contents to get the item to your local path.

Conclusion

Integrating Dropbox into your FileMaker solution is a great way to save space on your server and allow access to documents on the go. These features bring a level of convenience and security to your documents that you won’t achieve with only local storage. If you have any questions or need help integrating Dropbox with your FileMaker solution, contact DB Services and we’ll be glad to help!

Did you know we are an authorized reseller for Claris FileMaker Licensing?
Contact us to discuss upgrading your Claris FileMaker software.

Download the FileMaker Dropbox Integration File

Please complete the form below to download your FREE FileMaker file.

Latest Posts

spot_imgspot_img

Don't Miss

[tdn_block_newsletter_subscribe title_text="Stay in touch" description="VG8gYmUgdXBkYXRlZCB3aXRoIGFsbCB0aGUgbGF0ZXN0IG5ld3MsIG9mZmVycyBhbmQgc3BlY2lhbCBhbm5vdW5jZW1lbnRzLg==" input_placeholder="Email address" tds_newsletter2-image="5" tds_newsletter2-image_bg_color="#c3ecff" tds_newsletter3-input_bar_display="row" tds_newsletter4-image="6" tds_newsletter4-image_bg_color="#fffbcf" tds_newsletter4-btn_bg_color="#f3b700" tds_newsletter4-check_accent="#f3b700" tds_newsletter5-tdicon="tdc-font-fa tdc-font-fa-envelope-o" tds_newsletter5-btn_bg_color="#000000" tds_newsletter5-btn_bg_color_hover="#4db2ec" tds_newsletter5-check_accent="#000000" tds_newsletter6-input_bar_display="row" tds_newsletter6-btn_bg_color="#da1414" tds_newsletter6-check_accent="#da1414" tds_newsletter7-image="7" tds_newsletter7-btn_bg_color="#1c69ad" tds_newsletter7-check_accent="#1c69ad" tds_newsletter7-f_title_font_size="20" tds_newsletter7-f_title_font_line_height="28px" tds_newsletter8-input_bar_display="row" tds_newsletter8-btn_bg_color="#00649e" tds_newsletter8-btn_bg_color_hover="#21709e" tds_newsletter8-check_accent="#00649e" embedded_form_code="JTNDIS0tJTIwQmVnaW4lMjBNYWlsQ2hpbXAlMjBTaWdudXAlMjBGb3JtJTIwLS0lM0UlMEElMEElM0Nmb3JtJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZ0YWdkaXYudXMxNi5saXN0LW1hbmFnZS5jb20lMkZzdWJzY3JpYmUlMkZwb3N0JTNGdSUzRDZlYmQzMWU5NGNjYzVhZGRkYmZhZGFhNTUlMjZhbXAlM0JpZCUzRGVkODQwMzZmNGMlMjIlMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwaWQlM0QlMjJtYy1lbWJlZGRlZC1zdWJzY3JpYmUtZm9ybSUyMiUyMG5hbWUlM0QlMjJtYy1lbWJlZGRlZC1zdWJzY3JpYmUtZm9ybSUyMiUyMGNsYXNzJTNEJTIydmFsaWRhdGUlMjIlMjB0YXJnZXQlM0QlMjJfYmxhbmslMjIlMjBub3ZhbGlkYXRlJTNFJTNDJTJGZm9ybSUzRSUwQSUwQSUzQyEtLUVuZCUyMG1jX2VtYmVkX3NpZ251cC0tJTNF" descr_space="eyJhbGwiOiIxNSIsImxhbmRzY2FwZSI6IjE1In0=" tds_newsletter="tds_newsletter3" tds_newsletter3-all_border_width="0" btn_text="Sign up" tds_newsletter3-btn_bg_color="#ea1717" tds_newsletter3-btn_bg_color_hover="#000000" tds_newsletter3-btn_border_size="0" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjAiLCJiYWNrZ3JvdW5kLWNvbG9yIjoiI2E3ZTBlNSIsImRpc3BsYXkiOiIifSwicG9ydHJhaXQiOnsiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdF9tYXhfd2lkdGgiOjEwMTgsInBvcnRyYWl0X21pbl93aWR0aCI6NzY4fQ==" tds_newsletter3-input_border_size="0" tds_newsletter3-f_title_font_family="445" tds_newsletter3-f_title_font_transform="uppercase" tds_newsletter3-f_descr_font_family="394" tds_newsletter3-f_descr_font_size="eyJhbGwiOiIxMiIsInBvcnRyYWl0IjoiMTEifQ==" tds_newsletter3-f_descr_font_line_height="eyJhbGwiOiIxLjYiLCJwb3J0cmFpdCI6IjEuNCJ9" tds_newsletter3-title_color="#000000" tds_newsletter3-description_color="#000000" tds_newsletter3-f_title_font_weight="600" tds_newsletter3-f_title_font_size="eyJhbGwiOiIyMCIsImxhbmRzY2FwZSI6IjE4IiwicG9ydHJhaXQiOiIxNiJ9" tds_newsletter3-f_input_font_family="394" tds_newsletter3-f_btn_font_family="" tds_newsletter3-f_btn_font_transform="uppercase" tds_newsletter3-f_title_font_line_height="1" title_space="eyJsYW5kc2NhcGUiOiIxMCJ9"]