Skip to main content

FormInstanceResponse

Properties

NameTypeDescriptionNotes
IdStringUnique guid identifying this form instance[optional]
ExpireStringExpire is the maximum amount of time that a form can be in progress. After this time is reached then the form will be moved to a CANCELED state automatically. The user will no longer be able to complete the submission. When a form instance is expires an audit log will be generated for that record[optional]
StateEnum [ "ASSIGNED", "IN_PROGRESS", "SUBMITTED", "COMPLETED", "CANCELLED" ]State the state of the form instance ASSIGNED FormInstanceStateAssigned IN_PROGRESS FormInstanceStateInProgress SUBMITTED FormInstanceStateSubmitted COMPLETED FormInstanceStateCompleted CANCELLED FormInstanceStateCancelled[optional]
StandAloneFormBooleanStandAloneForm is a boolean flag to indicate if this form should be available for users to complete via the standalone form UI or should this only be available to be completed by as an embedded form[optional] [default to $false]
StandAloneFormUrlStringStandAloneFormURL is the URL where this form may be completed by the designated recipients using the standalone form UI[optional]
CreatedByFormInstanceCreatedBy[optional]
FormDefinitionIdStringFormDefinitionID is the id of the form definition that created this form[optional]
FormInput[map[string]SystemCollectionsHashtable]https://learn.microsoft.com/en-us/dotnet/api/system.collections.hashtable?view=net-9.0FormInput is an object of form input labels to value[optional]
FormElements[]FormElementFormElements is the configuration of the form, this would be a repeat of the fields from the form-config[optional]
FormData[map[string]AnyType]https://learn.microsoft.com/en-us/powershell/scripting/lang-spec/chapter-04?view=powershell-7.4FormData is the data provided by the form on submit. The data is in a key -> value map[optional]
FormErrors[]FormErrorFormErrors is an array of form validation errors from the last time the form instance was transitioned to the SUBMITTED state. If the form instance had validation errors then it would be moved to the IN PROGRESS state where the client can retrieve these errors[optional]
FormConditions[]FormConditionFormConditions is the conditional logic that modify the form dynamically modify the form as the recipient is interacting out the form[optional]
CreatedSystem.DateTimeCreated is the date the form instance was assigned[optional]
ModifiedSystem.DateTimeModified is the last date the form instance was modified[optional]
Recipients[]FormInstanceRecipientRecipients references to the recipient of a form. The recipients are those who are responsible for filling out a form and completing it[optional]

Examples

  • Prepare the resource
$FormInstanceResponse = Initialize-V2024FormInstanceResponse  -Id 06a2d961-07fa-44d1-8d0a-2f6470e30fd2 `
-Expire 2023-08-12T20:14:57.74486Z `
-State ASSIGNED `
-StandAloneForm false `
-StandAloneFormUrl https://my-org.identitynow.com/ui/d/forms/00000000-0000-0000-0000-000000000000 `
-CreatedBy null `
-FormDefinitionId 49841cb8-00a5-4fbd-9888-8bbb28d48331 `
-FormInput {input1=Sales} `
-FormElements null `
-FormData {department=Engineering} `
-FormErrors null `
-FormConditions null `
-Created 2023-07-12T20:14:57.744860Z `
-Modified 2023-07-12T20:14:57.744860Z `
-Recipients null
  • Convert the resource to JSON
$FormInstanceResponse | ConvertTo-JSON

[Back to top]