Class Metadata
Class to get access to all metadata within the system including screens and lists. Metadata
public class Metadata
- Inheritance
-
Metadata
- Inherited Members
Methods
GetBlock(string)
Creates a SageCrmBlock object of the type specified.
[Obsolete("Use: new SageCrmBlock(blockName)")]
public SageCrmBlock GetBlock(string blockName)
Parameters
blockName
stringThis can be one of the fixed available block types, or the name of an actual block that has been set up in Admin in CRM. The fixed block types available are: Marquee, Message, File, Graphic, Chart, Pipeline, OrgChart.
Returns
- SageCrmBlock
A SageCrmBlock object
GetList(string)
Creates a list object from the metadata that can be used to display rows from a CRM table. This should be a list that has been configured within CRM Admin customization.
[Obsolete("Use: new List(listName)")]
public List GetList(string listName)
Parameters
listName
stringThe name of the list to return.
Returns
GetParam(ParamNames)
Check the value of a system parameter.
public string GetParam(ParamNames paramName)
Parameters
paramName
ParamNamesThe name of the parameter.ParamNames
Returns
- string
String with the value of parameter.
GetParam(string)
Check the value of a system parameter.
public string GetParam(string paramName)
Parameters
paramName
stringThe name of the parameter.ParamNames
Returns
- string
String with the value of parameter.
GetScreen()
Creates an empty EntryGroup object with no fields in it. Fields can then be added as required with the EntryGroup.AddEntry() method.
[Obsolete("Use: new EntryGroup(screenName)")]
public EntryGroup GetScreen()
Returns
- EntryGroup
An EntryGroup object
GetScreen(string)
Creates a EntryGroup object from the metadata that can be used to view/edit data from a CRM table.
[Obsolete("Use: new EntryGroup(screenName)")]
public EntryGroup GetScreen(string screenName)
Parameters
screenName
stringName of EntryGroup (screen). This should be an EntryGroup that has been configured within CRM Admin customization.
Returns
- EntryGroup
An EntryGroup object.
GetTableInfo(string)
Creates a TableInfo object which holds configuration information about a table in the CRM database.
public TableInfo GetTableInfo(string tableName)
Parameters
tableName
stringName or caption of the table to return.
Returns
GetTableInfoFromKey(int)
Creates a TableInfo object which holds configuration info about a table in the CRM database.
public TableInfo GetTableInfoFromKey(int KeyIndex)
Parameters
KeyIndex
intKey index of the table to return.
Returns
GetTranslation(string, string, bool)
Gets the translation of a caption in the current user language with option to switch off inline translation.
public string GetTranslation(string family, string code, bool nohottranslate)
Parameters
family
stringTranslation family.
code
stringTranslation code.
nohottranslate
boolDo not use inline translation.
Returns
- string
Translated value.
GetTranslation(string, string)
Gets the translation of a caption in the current user's language.
public string GetTranslation(string family, string code)
Parameters
Returns
- string
Translated value.
TableAllowed(string)
Returns true if table is allowed to use in the system.
public bool TableAllowed(string ATableName)
Parameters
ATableName
stringTable name to check.
Returns
- bool
True if table is allowed. False if table is not allowed.