On this page:
...
There are three options when uploading a Flow or Form: Insert, Copy or Replace. You can use a Stream or a file path location when uploading.
Code Block |
---|
string fileName = ....;
bool isForm = ....;
ApplicationEntry appEntry = ....;
// If an entry with the same id already exists, it will be replaced.
// Otherwise, the archive will be uploaded with the same id.
FormTypeEntry entry = appEntry. FormTypeFeed.UploadAndInsertFormType(filename, isForm);
// If an entry with the same id already exists, a copy will be made.
// Otherwise, the archive will be uploaded with the same id.
FormTypeEntry entry = appEntry.FormTypeFeed.UploadAndCopyFormType(filename, isForm);
// If an entry with the same id already exists, it will be replaced.
// Otherwise, the archive will be uploaded with the same id.
FormTypeEntry entry = appEntry.FormTypeFeed.UploadAndReplaceFormType(filename, isForm);
Stream appStream = ....;
bool isForm = ....;
ApplicationEntry appEntry = ....;
// If an entry with the same id already exists, it will be replaced.
// Otherwise, the archive will be uploaded with the same id.
FormTypeEntry entry = appEntry. FormTypeFeed.UploadAndInsertFormType(appStream,isForm);
// If an entry with the same id already exists, a copy will be made.
// Otherwise, the archive will be uploaded with the same id.
FormTypeEntry entry = appEntry.FormTypeFeed.UploadAndCopyFormType(appStream, isForm);
// If an entry with the same id already exists, it will be replaced.
// Otherwise, the archive will be uploaded with the same id.
FormTypeEntry entry = appEntry.FormTypeFeed.UploadAndReplaceFormType(appStream, isForm); |
...
The filename attribute for stream-based methods for digital and wet signatures and documents is required. Methods without the filename param are deprecated.
Add a Document to the builder from a given stream
Section |
---|
Column |
---|
| Code Block |
---|
/// Add a Document to this builder from a given stream
public FormEntryBuilder Document(string partName, Stream inputStream, string
contentType, string fileName)
|
|
Column |
---|
| Note |
---|
This method deprecates the previous method:
public FormEntryBuilder Document(string partName, Stream inputStream, string contentType)
|
|
|
Add a wet signature image to this builder from a given stream
Section |
---|
Column |
---|
| Code Block |
---|
/// Add a wet signature image to this builder from a given stream
public FormEntryBuilder WetSignature(string id, Stream inputStream, string contentType,
string fileName)
|
|
Column |
---|
| Note |
---|
This method deprecates the previous method: public FormEntryBuilder WetSignature(string id, Stream inputStream, string contentType) |
|
|
Add a Digital signature to this builder from a given stream
Section |
---|
Column |
---|
| Code Block |
---|
/// Add an xml signature to this builder from a given stream
public FormEntryBuilder DigitalSignature(Stream inputStream, string contentType, string
fileName)
|
|
Column |
---|
| Note |
---|
This method deprecates the previous method: public FormEntryBuilder DigitalSignature(Stream inputStream, string contentType) |
|
|
...