RefreshMetaData(Family)
Updates the Sage CRM internal cache with new information. For example. when the custom_captions table was edited or new records were added.
Parameters
Family. Specifies the caption family to update (capt_family).
Examples
Copy
var NewCaption;
NewCaption = CRM.CreateRecord("Custom_Captions");
NewCaption.Capt_FamilyType = "Choices";
NewCaption.Capt_Family = "Comp_Status";
NewCaption.Capt_Code = "Open";
NewCaption.Capt_US = "Open";
NewCaption.SaveChanges();
CRM.RefreshMetaData("Comp_Status");
Adds a new entry named Open to the Comp_Status caption family.
The CreateRecord(TableName) method adds a new record to the Custom_Captions table. Then, data is entered into the relevant table fields and the SaveChanges() method saves the changes to the database. The RefreshMetaData(Family) method refreshes the Sage CRM cache.