Skip to main content
Agent used for retrieving and setting favorites.

Constructors

NSFavouriteAgent()

Agent used for retrieving and setting favorites.

Methods

AddFavourite(String,Integer,Integer,String)

Adds a record in a table as a favorite for an associate
Returns: CRMScript.Global.Void

AddFavourites(String,Integer[],Integer,String)

Adds a list of record IDs as favorites for an associate
Returns: CRMScript.Global.Void

GetFavourites(String,Integer)

Gets all favorites for a table and associate
Returns: CRMScript.NetServer.NSFavourite[]

IsFavourite(String,Integer,Integer)

Checks if a record in a table is a favorite for an associate
Returns: CRMScript.Global.Bool

RemoveAllFavourites(String,Integer)

Removes all favorites for a table and associate
Returns: CRMScript.Global.Void

RemoveFavourite(String,Integer,Integer)

Removes favorite for a table, record ID, and associate
Returns: CRMScript.Global.Void

RemoveFavouritesById(Integer[])

Removes favorite using favorite ID
Returns: CRMScript.Global.Void

ToggleFavourite(String,Integer,Integer,String)

Toggles a record in a table as a favorite for an associate
Returns: CRMScript.Global.Bool - true if added; false if removed. Example: