Skip to main content
Nintex Community Menu Bar

How to Store a File in SQL using a SmartObject and Smartform

  • Feb 15, 2022 10:23 AM UTC
  • Nov 18, 2025 1:49 PM UTC
  • 0 replies
  • 263 views
  • Translate All

Topic

There may be a need to store files outside of K2 Smartbox SmartObjects. In this example SQL will be used to store the File and Smartforms will display metadata and the file.

Instructions

1. Create a SQL Table with a varchar(max) property. Make sure that there is a Primary Key column on the table to allow for CRUD methods.

2. Create a SmartObject from the SQL Table. Change the varchar(max) property to be a File property instead of text in K2 Designer. 

 

18387i55085768E9B677A6.png

 

3. Create an Item View from the SQL Table SmartObject. 

 

18388i6AF45BDBAF70F543.png

 

4. Test the View and ensure files can be uploaded and downloaded. 

 

18389i70AFE113368D76A3.png

Related Links