Returns:CRMScript.Global.DateTime - Next due date, this is a de.normalization of ‘closest future activity date, or most recent if no future activities’.
Maintained by the system, but very convenient for searching.
NSSaleEntity thing;String number = thing.GetNumber();
GetPerson()
A sale may also be connected to a person. This must be a contact person registered on the current contact. This does not mean that a person is required.
NSSaleEntity thing;NSPerson person = thing.GetPerson();
GetPostit()
String GetPostit()
Returns:CRMScript.Global.String - The actual text, max 2047 significant characters even though it is stored as a larger data type on some databases.Example:
Returns:CRMScript.Global.Integer - Actual probability, may differ from the one in the list.Example:
NSSaleEntity thing;Integer probability = thing.GetProbability();
GetProject()
A sale may also be connected to a project, so you see the sale both on the company card, and on the project card. This does not mean that a project is required.
Returns:CRMScript.Global.DateTime - Date the sale is to be reopened; valid only for status=stalled. Not necessarily the same as the nextDueDate.Example:
NSSaleEntity thing;Map udefs;udefs["SuperOffice:1"] = "[I:123]";udefs["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languagesudefs["custom.progid"] = "foobar";udefs["x_foo"] = "foobar";udefs["x_bar"] = "456"; // List item idthing.SetCustomFields(udefs);
NSSaleEntity thing;Map extras;extras["SuperOffice:1"] = "[I:123]";extras["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languagesextras["custom.progid"] = "foobar";thing.SetExtraFields(extras);
A sale may also be connected to a person. This must be a contact person registered on the current contact. This does not mean that a person is required.
A sale may also be connected to a project, so you see the sale both on the company card, and on the project card. This does not mean that a project is required.
NSSaleEntity thing;Map udefs;udefs["SuperOffice:1"] = "[I:123]";udefs["SuperOffice:1"] = "123"; // this will also work, but beware of decimal point variations in different languagesudefs["custom.progid"] = "foobar";thing.SetUserDefinedFields(udefs);
SetVisibleFor(NSVisibleFor[])
Sets the user groups and/or users the SaleEntity item is visible for.