Class NSSelectionAgent
Selections, entities, members and tasks
NSSelectionAgent agent;
agent.callMethod(arg1, arg2);
Examples
NSSelectionAgent agent;
agent.callMethod(arg1, arg2);
Constructors
NSSelectionAgent()
Selections, entities, members and tasks
NSSelectionAgent agent;
agent.callMethod(arg1, arg2);
Declaration
NSSelectionAgent Examples
NSSelectionAgent agent;
agent.callMethod(arg1, arg2);
Methods
AddContactSelectionMembers(Integer,NSContactPersonId[])
Adds the collection of ContactPersonId as members to the static selection
Declaration
Void AddContactSelectionMembers(Integer selectionId, NSContactPersonId[] contactPersonIds) Parameters
| Type | Name | Description |
| Integer | selectionId | |
| contactPersonIds |
Returns
| Type | Description |
| Void |
AddContactSelectionMembersFromSearch(Integer,String)
Adds members to the selection from the search result.
Declaration
Integer AddContactSelectionMembersFromSearch(Integer selectionId, String storageKey) Examples
NSSelectionAgent agent;
Integer selectionId;
String storageKey;
Integer res = agent.AddContactSelectionMembersFromSearch(selectionId, storageKey);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | storageKey |
Returns
| Type | Description |
| Integer |
AddRemoveContactSelectionMemberInterests(Integer,Integer[],Integer[],Integer[],Integer[])
Adds or removes interests on companies and persons in a selection.
Declaration
Void AddRemoveContactSelectionMemberInterests(Integer selectionId, Integer[] addCompanyInterests, Integer[] removeCompanyInterests, Integer[] addContactInterests, Integer[] removeContactInterests) Parameters
| Type | Name | Description |
| Integer | selectionId | |
| Integer[] | addCompanyInterests | |
| Integer[] | removeCompanyInterests | |
| Integer[] | addContactInterests | |
| Integer[] | removeContactInterests |
Returns
| Type | Description |
| Void |
AddSelectionMembers(Integer,Integer[])
Add selection members to a static selection of type others than contacts.
Declaration
Integer AddSelectionMembers(Integer selectionId, Integer[] ids) Examples
NSSelectionAgent agent;
Integer selectionId;
Integer[] ids;
Integer res = agent.AddSelectionMembers(selectionId, ids);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| Integer[] | ids |
Returns
| Type | Description |
| Integer |
AddSelectionMembersFromSearch(Integer,String)
Adds members from the selection using the search result.
Declaration
Integer AddSelectionMembersFromSearch(Integer selectionId, String storageKey) Examples
NSSelectionAgent agent;
Integer selectionId;
String storageKey;
Integer res = agent.AddSelectionMembersFromSearch(selectionId, storageKey);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | storageKey |
Returns
| Type | Description |
| Integer |
CopyContactSelectionMembers(Integer,Integer)
Copies contact selection members from selection into an existing selection.
Declaration
Void CopyContactSelectionMembers(Integer fromSelectionId, Integer toSelectionId) Parameters
| Type | Name | Description |
| Integer | fromSelectionId | |
| Integer | toSelectionId |
Returns
| Type | Description |
| Void |
CopySelectionMembers(Integer,Integer)
Copies selection members from selection into an existing selection.
Declaration
Void CopySelectionMembers(Integer fromSelectionId, Integer toSelectionId) Parameters
| Type | Name | Description |
| Integer | fromSelectionId | |
| Integer | toSelectionId |
Returns
| Type | Description |
| Void |
CreateContactSelectionFromSelection(Integer,String,Integer,Bool)
Creates a new selection based on selection members from an existing selection.
Declaration
NSSelectionEntity CreateContactSelectionFromSelection(Integer selectionId, String name, Integer targetSelectionType, Bool copyMembers) Examples
NSSelectionAgent agent;
Integer selectionId;
String name;
Integer targetSelectionType;
Bool copyMembers;
NSSelectionEntity res = agent.CreateContactSelectionFromSelection(selectionId, name, targetSelectionType, copyMembers);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | name | |
| Integer | targetSelectionType | See <xref href="CRMScript.NetServer.SelectionType" data-throw-if-not-resolved="false"></xref> |
| Bool | copyMembers |
Returns
| Type | Description |
| NSSelectionEntity |
CreateContactSelectionFromShadowSelection(Integer,String)
Creates a new contact selection based on contact selection members from an existing shadow sale, appointment, project or document selection.
Declaration
NSSelectionEntity CreateContactSelectionFromShadowSelection(Integer selectionId, String name) Examples
NSSelectionAgent agent;
Integer selectionId;
String name;
NSSelectionEntity res = agent.CreateContactSelectionFromShadowSelection(selectionId, name);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | name |
Returns
| Type | Description |
| NSSelectionEntity |
CreateDefaultMailMergeSettings()
Sets default values into a new NSMailMergeSettings.
Declaration
NSMailMergeSettings CreateDefaultMailMergeSettings() Examples
NSSelectionAgent agent;
NSMailMergeSettings thing = agent.CreateDefaultMailMergeSettings();
thing = agent.SaveMailMergeSettings(thing);
Returns
| Type | Description |
| NSMailMergeSettings |
CreateDefaultMailMergeTask()
Sets default values into a new NSMailMergeTask.
Declaration
NSMailMergeTask CreateDefaultMailMergeTask() Examples
NSSelectionAgent agent;
NSMailMergeTask thing = agent.CreateDefaultMailMergeTask();
thing = agent.SaveMailMergeTask(thing);
Returns
| Type | Description |
| NSMailMergeTask |
CreateDefaultSelectionEntity()
Sets default values into a new NSSelectionEntity.
Declaration
NSSelectionEntity CreateDefaultSelectionEntity() Examples
NSSelectionAgent agent;
NSSelectionEntity thing = agent.CreateDefaultSelectionEntity();
thing = agent.SaveSelectionEntity(thing);
Returns
| Type | Description |
| NSSelectionEntity |
CreateNewEntry(NSDuplicateEntry)
Creates a new selection based on external duplicate
Declaration
Integer CreateNewEntry(NSDuplicateEntry duplicate) Examples
NSSelectionAgent agent;
NSDuplicateEntry duplicate;
Integer res = agent.CreateNewEntry(duplicate);
Parameters
| Type | Name | Description |
| NSDuplicateEntry | duplicate |
Returns
| Type | Description |
| Integer |
CreateSelectionEntity(String)
Creates (but do not save) a new selection entity, for the current user and the given target table; other fields populated as by CreateDefaultSelectionEntity()
Declaration
NSSelectionEntity CreateSelectionEntity(String targetTableName) Examples
NSSelectionAgent agent;
String targetTableName;
NSSelectionEntity res = agent.CreateSelectionEntity(targetTableName);
Parameters
| Type | Name | Description |
| String | targetTableName |
Returns
| Type | Description |
| NSSelectionEntity |
CreateSelectionFromSelection(Integer,String,Integer,Bool)
Creates a new selection based on selection members from an existing selection.
Declaration
NSSelectionEntity CreateSelectionFromSelection(Integer selectionId, String name, Integer targetSelectionType, Bool copyMembers) Examples
NSSelectionAgent agent;
Integer selectionId;
String name;
Integer targetSelectionType;
Bool copyMembers;
NSSelectionEntity res = agent.CreateSelectionFromSelection(selectionId, name, targetSelectionType, copyMembers);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | name | |
| Integer | targetSelectionType | See <xref href="CRMScript.NetServer.SelectionType" data-throw-if-not-resolved="false"></xref> |
| Bool | copyMembers |
Returns
| Type | Description |
| NSSelectionEntity |
CreateTemporaryContactSelection()
Creates a temporary selection.
Declaration
NSSelectionEntity CreateTemporaryContactSelection() Examples
NSSelectionAgent agent;
NSSelectionEntity res = agent.CreateTemporaryContactSelection();
Returns
| Type | Description |
| NSSelectionEntity |
CreateTemporaryContactSelectionFromContactPersonIds(NSContactPersonId[])
Creates a temporary selection with members from a collection of ContactPerson IDs.
Declaration
NSSelectionEntity CreateTemporaryContactSelectionFromContactPersonIds(NSContactPersonId[] contactPersonIds) Examples
NSSelectionAgent agent;
NSContactPersonId[] contactPersonIds;
NSSelectionEntity res = agent.CreateTemporaryContactSelectionFromContactPersonIds(contactPersonIds);
Parameters
| Type | Name | Description |
| contactPersonIds |
Returns
| Type | Description |
| NSSelectionEntity |
CreateTemporaryContactSelectionFromProjectMembers(Integer)
Creates a temporary selection with members from an existing project.
Declaration
NSSelectionEntity CreateTemporaryContactSelectionFromProjectMembers(Integer projectId) Examples
NSSelectionAgent agent;
Integer projectId;
NSSelectionEntity res = agent.CreateTemporaryContactSelectionFromProjectMembers(projectId);
Parameters
| Type | Name | Description |
| Integer | projectId |
Returns
| Type | Description |
| NSSelectionEntity |
CreateTemporaryContactSelectionFromSelectionMemberIds(Integer,Integer[])
Creates a temporary selection with members from a collection of selection-member IDs.
Declaration
NSSelectionEntity CreateTemporaryContactSelectionFromSelectionMemberIds(Integer selectionId, Integer[] selectionMemberIds) Examples
NSSelectionAgent agent;
Integer selectionId;
Integer[] selectionMemberIds;
NSSelectionEntity res = agent.CreateTemporaryContactSelectionFromSelectionMemberIds(selectionId, selectionMemberIds);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| Integer[] | selectionMemberIds |
Returns
| Type | Description |
| NSSelectionEntity |
CreateTemporarySelectionFromIds(Integer[],Integer)
Creates a temporary selection with members from a collection of entity IDs.
Declaration
NSSelectionEntity CreateTemporarySelectionFromIds(Integer[] ids, Integer targetTableNumber) Examples
NSSelectionAgent agent;
Integer[] ids;
Integer targetTableNumber;
NSSelectionEntity res = agent.CreateTemporarySelectionFromIds(ids, targetTableNumber);
Parameters
| Type | Name | Description |
| Integer[] | ids | |
| Integer | targetTableNumber |
Returns
| Type | Description |
| NSSelectionEntity |
DeleteContacts(Integer)
Deletes all contacts from a selection.
Declaration
Void DeleteContacts(Integer selectionId) Parameters
| Type | Name | Description |
| Integer | selectionId |
Returns
| Type | Description |
| Void |
DeleteEntities(Integer)
Deletes all entities from a selection.
Declaration
Void DeleteEntities(Integer selectionId) Parameters
| Type | Name | Description |
| Integer | selectionId |
Returns
| Type | Description |
| Void |
DeletePersons(Integer)
Deletes all persons from a selection.
Declaration
Void DeletePersons(Integer selectionId) Parameters
| Type | Name | Description |
| Integer | selectionId |
Returns
| Type | Description |
| Void |
DeleteSelectionEntity(Integer)
Deletes the NSSelectionEntity
Declaration
DeleteSelectionEntity(Integer selectionEntity) Examples
NSSelectionAgent agent;
agent.DeleteSelectionEntity(123);
Parameters
| Type | Name | Description |
| Integer | selectionEntity |
Returns
| Type | Description |
| Void |
EditContactSelectionMemberDetails(Integer,NSSelectionMemberEditValues)
Edits company and contact details in a selection based on contents in selectionMemberEditValues.
Declaration
Void EditContactSelectionMemberDetails(Integer selectionId, NSSelectionMemberEditValues selectionMemberEditValues) Parameters
| Type | Name | Description |
| Integer | selectionId | |
| selectionMemberEditValues |
Returns
| Type | Description |
| Void |
ExportSelectionMembers(Integer,String,Bool)
Generates a string that is the result of substituting the template variables with values from selection members.
Declaration
Byte[] ExportSelectionMembers(Integer selectionId, String templateName, Bool useContacts) Examples
NSSelectionAgent agent;
Integer selectionId;
String templateName;
Bool useContacts;
Byte[] res = agent.ExportSelectionMembers(selectionId, templateName, useContacts);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | templateName | |
| Bool | useContacts |
Returns
| Type | Description |
| Byte[] |
ExportSelectionMembersWithOrderBy(Integer,String,Bool,String)
Generates a string that is the result of substituting the template variables with values from selection members.
Declaration
Byte[] ExportSelectionMembersWithOrderBy(Integer selectionId, String templateName, Bool useContacts, String orderBy) Examples
NSSelectionAgent agent;
Integer selectionId;
String templateName;
Bool useContacts;
String orderBy;
Byte[] res = agent.ExportSelectionMembersWithOrderBy(selectionId, templateName, useContacts, orderBy);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | templateName | |
| Bool | useContacts | |
| String | orderBy |
Returns
| Type | Description |
| Byte[] |
GenerateFollowUps(Integer,NSAppointmentEntity,Integer,Bool,Bool)
Generates follow-ups for members in the selection.
Declaration
Void GenerateFollowUps(Integer selectionId, NSAppointmentEntity appointmentEntity, Integer associateId, Bool saveOnContactOwner, Bool uniqueContact) Parameters
| Type | Name | Description |
| Integer | selectionId | |
| appointmentEntity | ||
| Integer | associateId | |
| Bool | saveOnContactOwner | |
| Bool | uniqueContact |
Returns
| Type | Description |
| Void |
GetDuplicateRules()
Retrieves all available duplicate rules for selection
Declaration
NSDuplicateRule[] GetDuplicateRules() Examples
NSSelectionAgent agent;
NSDuplicateRule[] res = agent.GetDuplicateRules();
Returns
| Type | Description |
| NSDuplicateRule[] |
GetDuplicates(String)
Gets duplicates(exact or similar in the database) based on the name
Declaration
NSDuplicateEntry[] GetDuplicates(String name) Examples
NSSelectionAgent agent;
String name;
NSDuplicateEntry[] res = agent.GetDuplicates(name);
Parameters
| Type | Name | Description |
| String | name |
Returns
| Type | Description |
| NSDuplicateEntry[] |
GetDynamicSelectionCriteria(Integer)
Gets the criteria for this dynamic selection.
Declaration
NSArchiveRestrictionInfo[] GetDynamicSelectionCriteria(Integer selectionId) Examples
NSSelectionAgent agent;
Integer selectionId;
NSArchiveRestrictionInfo[] res = agent.GetDynamicSelectionCriteria(selectionId);
Parameters
| Type | Name | Description |
| Integer | selectionId |
Returns
| Type | Description |
| NSArchiveRestrictionInfo[] |
GetDynamicSelectionCriteriaGroups(Integer)
Gets the criteria for this dynamic selection. This call supports multiple criteria groups.
Declaration
NSArchiveRestrictionGroup[] GetDynamicSelectionCriteriaGroups(Integer selectionId) Examples
NSSelectionAgent agent;
Integer selectionId;
NSArchiveRestrictionGroup[] res = agent.GetDynamicSelectionCriteriaGroups(selectionId);
Parameters
| Type | Name | Description |
| Integer | selectionId |
Returns
| Type | Description |
| NSArchiveRestrictionGroup[] |
GetParentCombinedSelections(Integer)
Gets a list of all selection ids where the given selection is used to create a combined selection.
Declaration
Integer[] GetParentCombinedSelections(Integer selectionId) Examples
NSSelectionAgent agent;
Integer selectionId;
Integer[] res = agent.GetParentCombinedSelections(selectionId);
Parameters
| Type | Name | Description |
| Integer | selectionId |
Returns
| Type | Description |
| Integer[] |
GetRecipientStatistics(Integer)
Returns an NSRecipientStatistics object with a count of addresses and email addresses.
Declaration
NSRecipientStatistics GetRecipientStatistics(Integer selectionId) Examples
NSSelectionAgent agent;
Integer selectionId;
NSRecipientStatistics res = agent.GetRecipientStatistics(selectionId);
Parameters
| Type | Name | Description |
| Integer | selectionId |
Returns
| Type | Description |
| NSRecipientStatistics |
GetRecipientStatisticsFromContactPersonIds()
Returns an NSRecipientStatistics object with a count of addresses and email addresses based on contact and persons in a collection of ContactPersonId.
Declaration
NSRecipientStatistics GetRecipientStatisticsFromContactPersonIds(NSContactPersonId[] contactPersonIds) Examples
NSSelectionAgent agent;
NSContactPersonId[] contactPersonIds;
NSRecipientStatistics res = agent.GetRecipientStatisticsFromContactPersonIds(contactPersonIds);
Returns
| Type | Description |
| NSRecipientStatistics |
GetRecipientStatisticsFromProjectMembers(Integer)
Returns an NSRecipientStatistics object with a count of addresses and email addresses based on members in a project.
Declaration
NSRecipientStatistics GetRecipientStatisticsFromProjectMembers(Integer projectId) Examples
NSSelectionAgent agent;
Integer projectId;
NSRecipientStatistics res = agent.GetRecipientStatisticsFromProjectMembers(projectId);
Parameters
| Type | Name | Description |
| Integer | projectId |
Returns
| Type | Description |
| NSRecipientStatistics |
GetSelectionEntity(Integer)
Gets an NSSelectionEntity object.
Declaration
NSSelectionEntity GetSelectionEntity(Integer selectionEntityId) Examples
NSSelectionAgent agent;
NSSelectionEntity thing = agent.GetSelectionEntity(123);
Parameters
| Type | Name | Description |
| Integer | selectionEntityId |
Returns
| Type | Description |
| NSSelectionEntity |
GetSelectionForFind(String,Integer)
Obtains a selection for the given entity, for the current user, of type WorkingSetForFind.
Declaration
NSSelectionForFind GetSelectionForFind(String entityName, Integer typicalSearchId) Examples
NSSelectionAgent agent;
String entityName;
Integer typicalSearchId;
NSSelectionForFind res = agent.GetSelectionForFind(entityName, typicalSearchId);
Parameters
| Type | Name | Description |
| String | entityName | |
| Integer | typicalSearchId | Optionally populate criteria from the TypicalSearches system. |
Returns
| Type | Description |
| NSSelectionForFind |
GetSelectionMembersArchiveRows(Integer,String)
Gets the list of members in this selection. The type of members depends on the target table of the selection.
Declaration
NSArchiveListItem[] GetSelectionMembersArchiveRows(Integer selectionId, String select) Examples
NSSelectionAgent agent;
Integer selectionId;
String select;
NSArchiveListItem[] res = agent.GetSelectionMembersArchiveRows(selectionId, select);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | select |
Returns
| Type | Description |
| NSArchiveListItem[] |
GetSelectionShadowMembersArchiveRows(Integer,String)
Gets the list of members in this selection's shadow (i.e. the list of contacts + persons referenced in the main selection).
Declaration
NSArchiveListItem[] GetSelectionShadowMembersArchiveRows(Integer selectionId, String select) Examples
NSSelectionAgent agent;
Integer selectionId;
String select;
NSArchiveListItem[] res = agent.GetSelectionShadowMembersArchiveRows(selectionId, select);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | select |
Returns
| Type | Description |
| NSArchiveListItem[] |
RemoveContactSelectionMembers(Integer,NSContactPersonId[])
Removes members from the selection as specified in the collection of ContactPersonId.
Declaration
Void RemoveContactSelectionMembers(Integer selectionId, NSContactPersonId[] contactPersonIds) Parameters
| Type | Name | Description |
| Integer | selectionId | |
| contactPersonIds |
Returns
| Type | Description |
| Void |
RemoveContactSelectionMembersFromIds(Integer,Integer[])
Removes members from the selection using a collection a selection-member IDs.
Declaration
Void RemoveContactSelectionMembersFromIds(Integer selectionId, Integer[] selectionMembersIds) Parameters
| Type | Name | Description |
| Integer | selectionId | |
| Integer[] | selectionMembersIds |
Returns
| Type | Description |
| Void |
RemoveContactSelectionMembersFromSearch(Integer,String)
Removes members from the selection using the search result.
Declaration
Integer RemoveContactSelectionMembersFromSearch(Integer selectionId, String storageKey) Examples
NSSelectionAgent agent;
Integer selectionId;
String storageKey;
Integer res = agent.RemoveContactSelectionMembersFromSearch(selectionId, storageKey);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | storageKey |
Returns
| Type | Description |
| Integer |
RemoveSelectionMembers(Integer,Integer[])
Removes members from the selection as specified in the collection of entity IDs. The IDs are selection member IDs (selection member primary key)
Declaration
Void RemoveSelectionMembers(Integer selectionId, Integer[] selectionMemberIds) Parameters
| Type | Name | Description |
| Integer | selectionId | |
| Integer[] | selectionMemberIds |
Returns
| Type | Description |
| Void |
RemoveSelectionMembersById(Integer,Integer[])
Removes members from the selection as specified in the collection of entity IDs. The IDs can be a collection of sale IDs, or other supported types.
Declaration
Void RemoveSelectionMembersById(Integer selectionId, Integer[] ids) Parameters
| Type | Name | Description |
| Integer | selectionId | |
| Integer[] | ids |
Returns
| Type | Description |
| Void |
RemoveSelectionMembersFromSearch(Integer,String)
Removes members from the selection using the search result.
Declaration
Integer RemoveSelectionMembersFromSearch(Integer selectionId, String storageKey) Examples
NSSelectionAgent agent;
Integer selectionId;
String storageKey;
Integer res = agent.RemoveSelectionMembersFromSearch(selectionId, storageKey);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | storageKey |
Returns
| Type | Description |
| Integer |
SaveSelectionEntity(NSSelectionEntity)
Updates the existing NSSelectionEntity or creates a new NSSelectionEntity if the ID parameter is 0.
Declaration
NSSelectionEntity SaveSelectionEntity(NSSelectionEntity selectionEntity) Examples
NSSelection agent;
NSSelectionEntity thing = agent.CreateDefaultSelectionEntity();
thing = agent.SaveSelectionEntity(thing);
Parameters
| Type | Name | Description |
| NSSelectionEntity | selectionEntity | The entity to save. |
Returns
| Type | Description |
| NSSelectionEntity | The new or updated NSSelectionEntity. |
SetDuplicateRulesStatus(NSDuplicateRule[])
Sets which duplicate rules should be active or not
Declaration
Void SetDuplicateRulesStatus(NSDuplicateRule[] rules) Parameters
| Type | Name | Description |
| NSDuplicateRule[] | rules |
Returns
| Type | Description |
| Void |
SetDynamicSelectionCriteria(Integer,NSArchiveRestrictionInfo[])
Updates the criteria for this dynamic selection. Replaces existing criteria with the new values.
Declaration
NSArchiveRestrictionInfo[] SetDynamicSelectionCriteria(Integer selectionId, NSArchiveRestrictionInfo[] criteria) Examples
NSSelectionAgent agent;
Integer selectionId;
NSArchiveRestrictionInfo[] criteria;
NSArchiveRestrictionInfo[] res = agent.SetDynamicSelectionCriteria(selectionId, criteria);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| NSArchiveRestrictionInfo[] | criteria |
Returns
| Type | Description |
| NSArchiveRestrictionInfo[] |
SetDynamicSelectionCriteria2(Integer,String)
Updates the criteria for this dynamic selection using string.
Declaration
NSArchiveRestrictionInfo[] SetDynamicSelectionCriteria2(Integer selectionId, String filter) Examples
NSSelectionAgent agent;
Integer selectionId;
String filter;
NSArchiveRestrictionInfo[] res = agent.SetDynamicSelectionCriteria2(selectionId, filter);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| String | filter |
Returns
| Type | Description |
| NSArchiveRestrictionInfo[] |
SetDynamicSelectionCriteria3(Integer,NSArchiveRestrictionInfo[],String)
Updates the criteria for this dynamic selection. Use criteria as either restriction objects or OData string format.
Declaration
NSArchiveRestrictionInfo[] SetDynamicSelectionCriteria3(Integer selectionId, NSArchiveRestrictionInfo[] criteria, String filter) Examples
NSSelectionAgent agent;
Integer selectionId;
NSArchiveRestrictionInfo[] criteria;
String filter;
NSArchiveRestrictionInfo[] res = agent.SetDynamicSelectionCriteria3(selectionId, criteria, filter);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| NSArchiveRestrictionInfo[] | criteria | |
| String | filter |
Returns
| Type | Description |
| NSArchiveRestrictionInfo[] |
SetDynamicSelectionCriteriaGroups(Integer,NSArchiveRestrictionGroup[])
Updates the criteria for this dynamic selection. Replaces existing criteria with the new values. This call supports multiple criteria groups.
Declaration
NSArchiveRestrictionGroup[] SetDynamicSelectionCriteriaGroups(Integer selectionId, NSArchiveRestrictionGroup[] criteria) Examples
NSSelectionAgent agent;
Integer selectionId;
NSArchiveRestrictionGroup[] criteria;
NSArchiveRestrictionGroup[] res = agent.SetDynamicSelectionCriteriaGroups(selectionId, criteria);
Parameters
| Type | Name | Description |
| Integer | selectionId | |
| NSArchiveRestrictionGroup[] | criteria |
Returns
| Type | Description |
| NSArchiveRestrictionGroup[] |
StartMailMerge(MailMergeSettings)
Starts a mail-merge operation with specified settings.
Declaration
Void StartMailMerge(MailMergeSettings settings) Parameters
| Type | Name | Description |
| settings |
Returns
| Type | Description |
| Void |
UpdateTypicalSearch(NSTypicalSearches)
Updates (imports) TypicalSearch information in the database
Declaration
String UpdateTypicalSearch(NSTypicalSearches searches) Examples
NSSelectionAgent agent;
NSTypicalSearches searches;
String res = agent.UpdateTypicalSearch(searches);
Parameters
| Type | Name | Description |
| searches |
Returns
| Type | Description |
| String |