Skip to main content
Nintex Community Menu Bar

Hello ... I currently have a simple Asset Management SharePoint Custom List with the following features using Javascript to perform the following features / functions:

 

  • New Form
    • javascript to create unique string based on date/time and places into SP Form Title field
    • Javascript Library reads Title field and generates a base64 encoded string of a Data Matrix barcode (.bmp format)
    • Form PreSaveAction() javascript takes base64 encoded string, converts to binary, and then creates a Title.bmp file into a SharePoint Library with the binary data as the content which provides an image file for display within views

 

I would like very much to uplift the javascript/library steps into a K2 Five SharePoint Workflow on New List Item Trigger...

 

Can K2 Five Workflow perform the following actions:

  • Read a SharePoint List Item field containing the base64/image bmp data string  (this is text)
  • Convert the base64 string into binary data (does K2 workflow have a binary type element?)
  • Create a file into a SharePoint Library using the binary data as the file content

--------------------------------------------

Update 1:

 

Making some progress ... see attached ... 

  • Using the Add Document to Library workflow step
  • Workflow is error'ing out with message:  Data at teh root level is invalid. Line1, position 1.
  • Not sure what it is looking for ...

The coding solution uses the base64 converted to binary as the content ... see attached 

 

 

 

Thanx !!!

Hi JeffLH,


 


Perhaps, you can use the Get File form Content function to read the file content in base64 encode.


 


'Read a SharePoint List Item field containing the base64/image bmp data string  (this is text)'


https://help.k2.com/onlinehelp/k2blackpearl/userguide/4.7/default.htm#2.Create/K2_for_VisualStudio_K2_Studio/4.Workflow/InlineFunctions/FB_Files.htm



 


 


Reply