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

# NSSelectionForFind

## Constructors

### NSSelectionForFind()

```crmscript theme={null}
NSSelectionForFind
```

Initializes a new instance of the NSSelectionForFind class.

## Methods

## GetCanSaveAsSelection()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Most Find entities support saving the search as a Dynamic Selection. This bool indicates if that is the case.

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
Bool canSaveAsSelection = thing.GetCanSaveAsSelection();
```

## GetFilterScreenHeading()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - 'Find sale', or whatever is appropriate for the Find\<entity>filter page; this string will contain resource references

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
String filterScreenHeading = thing.GetFilterScreenHeading();
```

## GetMainHeading()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - 'Sale', intended for the main headings in the Find front page; this string will contain resource references

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
String mainHeading = thing.GetMainHeading();
```

## GetProviderName()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The name of the Archive Provider to use when working with this selection; this is the main entity provider, never Shadow, Combined or anything else fancy.

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
String providerName = thing.GetProviderName();
```

## GetSelectionEntityHeading()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - 'Companies', or whatever else is appropriate\* the plural form of the entity name, intended for the Selection.Details tab before it is saved (!!); this string will contain resource references

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
String selectionEntityHeading = thing.GetSelectionEntityHeading();
```

## GetSelectionId()

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

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

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
Integer selectionId = thing.GetSelectionId();
```

## SetCanSaveAsSelection(Bool)

```crmscript theme={null}
Void SetCanSaveAsSelection(Bool canSaveAsSelection)
```

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

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
Bool canSaveAsSelection;
thing.SetCanSaveAsSelection(canSaveAsSelection);
```

## SetFilterScreenHeading(String)

'Find sale', or whatever is appropriate for the Find\<entity>filter page; this string will contain resource references

```crmscript theme={null}
Void SetFilterScreenHeading(String filterScreenHeading)
```

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

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
String filterScreenHeading;
thing.SetFilterScreenHeading(filterScreenHeading);
```

## SetMainHeading(String)

```crmscript theme={null}
Void SetMainHeading(String mainHeading)
```

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

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
String mainHeading;
thing.SetMainHeading(mainHeading);
```

## SetProviderName(String)

```crmscript theme={null}
Void SetProviderName(String providerName)
```

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

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
String providerName;
thing.SetProviderName(providerName);
```

## SetSelectionEntityHeading(String)

```crmscript theme={null}
Void SetSelectionEntityHeading(String selectionEntityHeading)
```

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

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
String selectionEntityHeading;
thing.SetSelectionEntityHeading(selectionEntityHeading);
```

## SetSelectionId(Integer)

```crmscript theme={null}
Void SetSelectionId(Integer selectionId)
```

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

**Example:**

```crmscript theme={null}
NSSelectionForFind thing;
Integer selectionId;
thing.SetSelectionId(selectionId);
```


## Related topics

- [NSSelectionAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSSelectionAgent.md)
- [Find and Selection](/en/api/search/find-selection/index.md)
- [FindSelection](/en/api/archive-providers/reference/findselection.md)
- [Get Selection For Find](/en/api/reference/restful/agent/selection_agent/get-selection-for-find.md)
- [How to Search using Find Selections](/en/api/search/find-selection/how-to-search.md)
- [SuperOffice.WebApi.Data.SelectionForFind](/en/api/reference/webapi/SuperOffice.WebApi.Data.SelectionForFind.md)
