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

# NSReportEntity

## Constructors

### NSReportEntity()

```crmscript theme={null}
NSReportEntity
```

Initializes a new instance of the NSReportEntity class.

## Methods

## GetAssociateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The owner of the report.

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer associateId = thing.GetAssociateId();
```

## GetDescription()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The description of the report.

**Example:**

```crmscript theme={null}
NSReportEntity thing;
String description = thing.GetDescription();
```

## GetName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the report.

**Example:**

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

## GetPublished()

```crmscript theme={null}
Bool GetPublished()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Is the report published?

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Bool published = thing.GetPublished();
```

## GetReportCategory()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The category of the report. See \<xref href="CRMScript.NetServer.ReportCategory" data-throw-if-not-resolved="false">\</xref>.

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer reportCategory = thing.GetReportCategory();
```

## GetReportId()

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

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

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer reportId = thing.GetReportId();
```

## GetReportLayout()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The layout of the report. See \<xref href="CRMScript.NetServer.ReportLayout" data-throw-if-not-resolved="false">\</xref>

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer reportLayout = thing.GetReportLayout();
```

## GetTemplateId()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The ID of report template.

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer templateId = thing.GetTemplateId();
```

## SetAssociateId(Integer)

```crmscript theme={null}
Void SetAssociateId(Integer associateId)
```

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

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer associateId;
thing.SetAssociateId(associateId);
```

## SetDescription(String)

```crmscript theme={null}
Void SetDescription(String description)
```

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

**Example:**

```crmscript theme={null}
NSReportEntity thing;
String description;
thing.SetDescription(description);
```

## SetName(String)

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

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

**Example:**

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

## SetPublished(Bool)

```crmscript theme={null}
Void SetPublished(Bool published)
```

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

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Bool published;
thing.SetPublished(published);
```

## SetReportCategory(Integer)

```crmscript theme={null}
Void SetReportCategory(Integer reportCategory)
```

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

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer reportCategory;
thing.SetReportCategory(reportCategory);
```

## SetReportId(Integer)

```crmscript theme={null}
Void SetReportId(Integer reportId)
```

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

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer reportId;
thing.SetReportId(reportId);
```

## SetReportLayout(Integer)

```crmscript theme={null}
Void SetReportLayout(Integer reportLayout)
```

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

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer reportLayout;
thing.SetReportLayout(reportLayout);
```

## SetTemplateId(Integer)

```crmscript theme={null}
Void SetTemplateId(Integer templateId)
```

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

**Example:**

```crmscript theme={null}
NSReportEntity thing;
Integer templateId;
thing.SetTemplateId(templateId);
```


## Related topics

- [NSReportAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSReportAgent.md)
- [Delete Report Label Layout Entity](/en/api/reference/restful/agent/report_agent/delete-report-label-layout-entity.md)
- [NSReportLabelLayoutEntity](/en/automation/crmscript/reference/CRMScript.NetServer.NSReportLabelLayoutEntity.md)
- [Save Report Label Layout Entity](/en/api/reference/restful/agent/report_agent/save-report-label-layout-entity.md)
- [Get Report Label Layout Entity](/en/api/reference/restful/agent/report_agent/get-report-label-layout-entity.md)
- [Create Default Report Label Layout Entity](/en/api/reference/restful/agent/report_agent/create-default-report-label-layout-entity.md)
