> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSFormSubmissionEntity

> Content of a Form submission.

Content of a Form submission.

## Constructors

### NSFormSubmissionEntity()

```crmscript theme={null}
NSFormSubmissionEntity
```

Initializes a new instance of the NSFormSubmissionEntity class.

## Methods

## GetContactId()

```crmscript theme={null}
Integer GetContactId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The optional ID of the contact of the person who submitted.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer contactId = thing.GetContactId();
```

## GetEmailAddress()

```crmscript theme={null}
String GetEmailAddress()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The email address of the person who submitted.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
String emailAddress = thing.GetEmailAddress();
```

## GetFormId()

```crmscript theme={null}
Integer GetFormId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The ID of the parent form.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer formId = thing.GetFormId();
```

## GetFormSubmissionId()

```crmscript theme={null}
Integer GetFormSubmissionId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer formSubmissionId = thing.GetFormSubmissionId();
```

## GetPersonId()

```crmscript theme={null}
Integer GetPersonId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The optional ID of the person who submitted.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer personId = thing.GetPersonId();
```

## GetProcessingLog()

```crmscript theme={null}
String GetProcessingLog()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - A log of what happened during processing.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
String processingLog = thing.GetProcessingLog();
```

## GetResponse()

```crmscript theme={null}
String GetResponse()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The JSON-formatted response from this form.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
String response = thing.GetResponse();
```

## GetResponseShipmentAddrId()

```crmscript theme={null}
Integer GetResponseShipmentAddrId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The ID of the s\_shipment\_addr that is the response mail.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer responseShipmentAddrId = thing.GetResponseShipmentAddrId();
```

## GetStatus()

```crmscript theme={null}
Integer GetStatus()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The status of this submission. See \<xref href="CRMScript.NetServer.FormSubmissionStatus" data-throw-if-not-resolved="false">\</xref>

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer status = thing.GetStatus();
```

## GetWhenSubmitted()

```crmscript theme={null}
DateTime GetWhenSubmitted()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - The time of the submit.

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
DateTime whenSubmitted = thing.GetWhenSubmitted();
```

## SetContactId(Integer)

```crmscript theme={null}
Void SetContactId(Integer contactId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer contactId;
thing.SetContactId(contactId);
```

## SetEmailAddress(String)

```crmscript theme={null}
Void SetEmailAddress(String emailAddress)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
String emailAddress;
thing.SetEmailAddress(emailAddress);
```

## SetFormId(Integer)

```crmscript theme={null}
Void SetFormId(Integer formId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer formId;
thing.SetFormId(formId);
```

## SetFormSubmissionId(Integer)

```crmscript theme={null}
Void SetFormSubmissionId(Integer formSubmissionId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer formSubmissionId;
thing.SetFormSubmissionId(formSubmissionId);
```

## SetPersonId(Integer)

```crmscript theme={null}
Void SetPersonId(Integer personId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer personId;
thing.SetPersonId(personId);
```

## SetProcessingLog(String)

```crmscript theme={null}
Void SetProcessingLog(String processingLog)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
String processingLog;
thing.SetProcessingLog(processingLog);
```

## SetResponse(String)

```crmscript theme={null}
Void SetResponse(String response)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
String response;
thing.SetResponse(response);
```

## SetResponseShipmentAddrId(Integer)

```crmscript theme={null}
Void SetResponseShipmentAddrId(Integer responseShipmentAddrId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer responseShipmentAddrId;
thing.SetResponseShipmentAddrId(responseShipmentAddrId);
```

## SetStatus(Integer)

```crmscript theme={null}
Void SetStatus(Integer status)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
Integer status;
thing.SetStatus(status);
```

## SetUpdSetWhenSubmitted(DateTime)

```crmscript theme={null}
Void SetWhenSubmitted(DateTime whenSubmitted)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFormSubmissionEntity thing;
DateTime whenSubmitted;
thing.SetWhenSubmitted(whenSubmitted);
```


## Related topics

- [NSMarketingAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSMarketingAgent.md)
- [Delete Form Submission Entity](/en/api/reference/restful/agent/marketing_agent/delete-form-submission-entity.md)
- [Save Form Submission Entity](/en/api/reference/restful/agent/marketing_agent/save-form-submission-entity.md)
- [Get Form Submission Entity](/en/api/reference/restful/agent/marketing_agent/get-form-submission-entity.md)
- [Create Default Form Submission Entity](/en/api/reference/restful/agent/marketing_agent/create-default-form-submission-entity.md)
- [SuperOffice.WebApi.Data.FormSubmissionEntity](/en/api/reference/webapi/SuperOffice.WebApi.Data.FormSubmissionEntity.md)
