Designers > K2 Designer for Visual Studio > Design Tools > Inline Functions > Function Browser > InfoPath | Send feedback |
InfoPath functions will get an InfoPath attachment's content or filename from an array of bytes.
Fig. 1. InfoPath
An item is selected and then added to the canvas or K2 field part by clicking the Add button or by using drag-and-drop.
Functions | Description | Example |
---|---|---|
Get Attachment Content | Gets an attachment's file content from an array of bytes. | Attachment: The attachment as Binary Result: The file content of the attachment as Binary |
Get Attachment Name | Gets an InfoPath attachment's filename from an array of bytes. | Attachment: The attachment as Binary Result: "c:\document.docx" |
Set Attachment | Creates an InfoPath attachment and returns it as a base-64 string. | Filename: "c:\document.docx" Content: The file content as Binary. Result: A base-64 string containing the attachment. |
The Function Wizard content varies according to the selected function: