Skip to main content
Collection of all services that works with Foreign key data (Key/Value pairs)

Constructors

NSForeignSystemAgent()

Methods

AddDeviceByIdentifier(String,String,String)

Adds a new NSForeignDevice with deviceName that belongs to the application with applicationName, with an optional device-specific identifier.
Returns: CRMScript.NetServer.NSForeignDevice Example:

AddForeignKey(NSForeignKey,String,String,String)

Adds a new key belonging to the ForeignApp and NSForeignDevice specified.
Returns: CRMScript.NetServer.NSForeignKey Example:

CreateDefaultForeignAppEntity()

Sets default values into a new NSForeignAppEntity.
Returns: CRMScript.NetServer.NSForeignAppEntity
NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
Example:

DeleteDeviceByIdentifier(String,String,String)

Deletes an NSForeignDevice with deviceName and deviceIdentifier that belongs to the application with applicationName.
Returns: CRMScript.Global.Void Example:

DeleteForeignAppEntity(Integer)

Deletes the NSForeignAppEntity
Returns: CRMScript.Global.Void Example:

DeleteForeignDevice(NSForeignDevice,String)

Deletes a foreign device from an application
Returns: CRMScript.Global.Void

DeleteForeignKey(NSForeignKey,String,String,String,String,Integer)

Deletes all specified occurrences of a key, belonging to the ForeignApp and NSForeignDevice, table and record specified. Specifying a blank table name will delete ALL keys of the given name; specifying a recordID of 0 will delete ALL keys of the given name for the given table.
Returns: CRMScript.Global.Void Example:

DeleteForeignKeyOnName(String,String,String,String,String,Integer)

Deletes all specified occurrences of a key, belonging to the ForeignApp and NSForeignDevice, table and record specified. Specifying a blank table name will delete ALL keys of the given name; specifying a recordID of 0 will delete ALL keys of the given name for the given table.
Returns: CRMScript.Global.Void Example:

GetAllForeignKeysOnEntity(String,Integer)

Gets a list of foreignkeys (‘app.device.key’) and their values (‘123’) that belong to the specified entity.
Returns: CRMScript.Native.Map Example:

GetAppByName(String)

Gets the ForeignApp with the given name.
Returns: CRMScript.NetServer.NSForeignAppEntity Example:

GetApplicationDevices(String)

Gets all devices that belong to a foreign application.
Returns: CRMScript.NetServer.NSForeignDevice[] Example:

GetApplicationKeys(String)

Returns all ForeignKeys that belong to an application.
Returns: CRMScript.NetServer.NSForeignKey[] - All ForeignKeys that belong to this application. Example:

GetDeviceByIdentifier(String,String,String)

Gets an NSForeignDevice with deviceName and deviceIdentifier that belongs to the application with applicationName.
Returns: CRMScript.NetServer.NSForeignDevice Example:

GetDeviceByName(String,String)

Gets an NSForeignDevice with deviceName that belongs to the application with applicationName.
Returns: CRMScript.NetServer.NSForeignDevice Example:

GetDeviceKeys(String,String)

Returns all ForeignKeys that belong to a device.
Returns: CRMScript.NetServer.NSForeignKey[] Example:

GetDeviceKeysOnDeviceIdentifier(String,String,String)

Returns all ForeignKeys that belong to a device with a given deviceIdentifier.
Returns: CRMScript.NetServer.NSForeignKey[] Example:

GetDeviceKeysOnDeviceIdentifierTable(String,String,String,String)

Returns all ForeignKeys that belong to a device with a given deviceIdentifier and table name.
Returns: CRMScript.NetServer.NSForeignKey[] Example:

GetDeviceKeysOnDeviceIdentifierTableRecordId(String,String,String,String,Integer)

Returns all ForeignKeys that belong to a device with a given deviceIdentifier and table name, as well as record id.
Returns: CRMScript.NetServer.NSForeignKey[] Example:

GetForeignAppEntity(Integer)

Gets an NSForeignAppEntity object.
Returns: CRMScript.NetServer.NSForeignAppEntity Example:

GetForeignDevice(Integer)

Gets an NSForeignDevice object.
Returns: CRMScript.NetServer.NSForeignDevice Example:

GetKey(String,String,String,String,Integer)

Returns a foreign key by its key name that belongs to the specified device and application. A table name and record ID can also be specified.
Returns: CRMScript.NetServer.NSForeignKey Example:

GetKeyByValue(String,String,String,String,String)

Gets a foreignkey based on its name and value, that belongs to the specified device and application.
Returns: CRMScript.NetServer.NSForeignKey Example:

GetKeyByValueAndIdentifier(String,String,String,String,String,String)

Gets a foreignkey based on its name and value, that belongs to the specified deviceId, device, and application.
Returns: CRMScript.NetServer.NSForeignKey Example:

GetKeyOnDeviceIdentifier(String,String,String,String,String,Integer)

Returns a foreign key by its key name and device identifier, that belongs to the specified device and application. A table name and record ID can also be specified.
Returns: CRMScript.NetServer.NSForeignKey Example:

GetKeyValue(String,String,String,String,Integer)

Gets the string value of an NSForeignKey, that belongs to the specified device and application. The table name and record ID must also be specified.
Returns: CRMScript.Global.String Example:

GetKeyValueOnDeviceIdentifier(String,String,String,String,String,Integer)

Returns a foreign key string value by its key name and device identifier, that belongs to the specified device and application. A table name and record ID can also be specified.
Returns: CRMScript.Global.String Example:

SaveDeviceByIdentifier(String,String,String,NSForeignDevice)

Updates an NSForeignDevice with deviceName that belongs to the application with applicationName.
Returns: CRMScript.NetServer.NSForeignDevice Example:

SaveForeignAppEntity(NSForeignAppEntity)

yUpdates the existing NSForeignAppEntity or creates a new NSForeignAppEntity if the ID parameter is 0.
Returns: CRMScript.NetServer.NSForeignAppEntity - The new or updated NSForeignAppEntity. Example:

SaveForeignDevice(NSForeignDevice,String)

Saves a foreign device for an foreign application
Returns: CRMScript.NetServer.NSForeignDevice Example:

SaveForeignKey(NSForeignKey,String,String,String)

Saves a key belonging to the ForeignApp and NSForeignDevice specified.
Returns: CRMScript.NetServer.NSForeignKey Example: