Description
Upload a file to a Dataverse field.
The parameter called data must be a base64 encoded string.
Signature
FileUpload('entityname', 'entityguid', 'fieldname', 'filename', 'mimetype', 'data')
Example #1
FileUpload('account', '4660d0ab-4d1f-487e-a714-fb9c5590edc3' , 'north52_littleimage', 'green.png', 'image/png' ,'iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAo0lEQVR42u3RAQ0AAAjDMO5fNCCDkG4SmupdZwoQIAICRECACAgQAQECBIiAABEQIAICRECACIiAABEQIAICRECACIiAABEQIAICRECACIiAABEQIAICRECACIiAABEQIAICRECACIiAABEQIAICRECACIiAABEQIAICRECACIiAABEQIAICRECACIiAABEQIAICRECACAgQIEAEBIiAABGQ7w2x48edS3GF7AAAAABJRU5ErkJggg==')
Example #2
FileUpload('account', [account.accountid], 'north52_littlefile', 'hello.txt', 'text/plain' , base64encode('Hello World') )
Example #3
SetVar('encodedpdf', FileDownload('contact', [account.primarycontactid], 'north52_littlefile')),
FileUpload('account', [account.accountid], 'north52_littlefile', 'test.pdf', 'application/pdf', GetVar('encodedpdf'))
This example shows how to copy a file from a field to another field.
Notes
The two fields related to the examples above are configured as follows:


