> ## 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.

# NSForeignAppEntity

> Carrier object for ForeignAppEntity.n

Carrier object for ForeignAppEntity.n

## Constructors

### NSForeignAppEntity()

```crmscript theme={null}
NSForeignAppEntity
```

Initializes a new instance of the NSForeignAppEntity class.

## Methods

## GetCreatedBy()

```crmscript theme={null}
NSAssociate GetCreatedBy()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The person that created the foreign application.

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
NSAssociate createdBy = thing.GetCreatedBy();
```

## GetCreatedDate()

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

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Registered when.

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
DateTime createdDate = thing.GetCreatedDate();
```

## GetDevices()

```crmscript theme={null}
NSForeignDevice[] GetDevices()
```

**Returns:** [CRMScript.NetServer.NSForeignDevice](CRMScript.NetServer.NSForeignDevice)\[] - The devices that belong to this foreign app.

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
NSForeignDevice[] devices = thing.GetDevices();
```

## GetForeignAppId()

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

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

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
Integer foreignAppId = thing.GetForeignAppId();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Name of foreign application.

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
String name = thing.GetName();
```

## GetUpdatedBy()

```crmscript theme={null}
NSAssociate GetUpdatedBy()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The person that last updated this foreign application.

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
NSAssociate updatedBy = thing.GetUpdatedBy();
```

## GetUpdatedDate()

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

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Last updated when.

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
DateTime updatedDate = thing.GetUpdatedDate();
```

## SetCreatedBy(NSAssociate)

```crmscript theme={null}
Void SetCreatedBy(NSAssociate createdBy)
```

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

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
NSAssociate createdBy;
thing.SetCreatedBy(createdBy);
```

## SetCreatedDate(DateTime)

```crmscript theme={null}
Void SetCreatedDate(DateTime createdDate)
```

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

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
DateTime createdDate;
thing.SetCreatedDate(createdDate);
```

## SetDevices(NSForeignDevice\[])

```crmscript theme={null}
Void SetDevices(NSForeignDevice[] devices)
```

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

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
NSForeignDevice[] devices;
thing.SetDevices(devices);
```

## SetForeignAppId(Integer)

```crmscript theme={null}
Void SetForeignAppId(Integer foreignAppId)
```

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

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
Integer foreignAppId;
thing.SetForeignAppId(foreignAppId);
```

## SetName(String)

```crmscript theme={null}
Void SetName(String name)
```

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

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
String name;
thing.SetName(name);
```

## SetUpdatedBy(NSAssociate)

```crmscript theme={null}
Void SetUpdatedBy(NSAssociate updatedBy)
```

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

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
NSAssociate updatedBy;
thing.SetUpdatedBy(updatedBy);
```

## SetUpdatedDate(DateTime)

```crmscript theme={null}
Void SetUpdatedDate(DateTime updatedDate)
```

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

**Example:**

```crmscript theme={null}
NSForeignAppEntity thing;
DateTime updatedDate;
thing.SetUpdatedDate(updatedDate);
```


## Related topics

- [NSForeignSystemAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSForeignSystemAgent.md)
- [Delete Foreign App Entity](/en/api/reference/restful/rest/foreignapp/delete-foreign-app-entity.md)
- [Post Foreign App Entity](/en/api/reference/restful/rest/foreignapp/post-foreign-app-entity.md)
- [Get Foreign App Entity](/en/api/reference/restful/rest/foreignapp/get-foreign-app-entity.md)
- [Default Foreign App Entity](/en/api/reference/restful/rest/foreignapp/default-foreign-app-entity.md)
