Constructors
NSSaleAgent()
Methods
AddSaleStakeholders(Integer,NSSaleStakeholder[])
BatchUpdateNextDueDate()
Re-calculates all the next due datesCreateDefaultSaleEntity()
Sets default values into a new NSSaleEntity.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateDefaultSaleStakeholder()
Sets default values into a new NSSaleStakeholder.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
CreateDefaultSaleSummary()
Sets default values into a new NSSaleSummary.NetServer calculates default values (for example, Country) on the entity, which is required when creating/storing a new instance
DeleteSaleEntity(Integer)
Deletes the NSSaleEntityDeleteSaleStakeholder(Integer)
Deletes the NSSaleStakeholderDeleteSaleStakeholders(Integer[])
GetMyOpportunities(Integer)
Returns opportunities (open sales) belonging to the user currently logged onGetNextDueDate(Integer)
Gets the next due date for a sale.The next due date is the next future appointment that is not completed.
GetNextSaleStage(Integer,Bool)
Gets the next (not deleted) sale stage ID if the current stage is deleted. If the current stage is not deleted, the CurrentStageId is returned.GetOpenSalesForContact(Integer)
Returns all open sales for the contact provided.GetProbabilityFromStage(Integer)
Gets the probability percentage for a given sale stageGetRecentSales(Integer,Integer)
Returns the latest sales (that are sold) limited by their amount.GetSale(Integer)
Gets an NSSale object.GetSaleEntity(Integer)
Gets an NSSaleEntity object.GetSaleList(Integer[])
Gets an array of Sale objects.GetSalesByDate(DateTime,DateTime,Integer,Integer)
Returns all sales within a time period. The sales array can be limited by amount and status.GetSalesFromContact(Integer,Bool)
Returns all sales for the contact provided.GetSalesFromPerson(Integer,Bool)
Returns all sales for the person provided.GetSaleStakeholder(Integer)
Gets an NSSaleStakeholder object.GetSaleStakeholderById(Integer[])
GetSaleStakeholderList(Integer[])
Gets an array of SaleStakeholder objects.GetSaleStakeholders(Integer)
GetSummaryByAssociate(Integer,DateTime,DateTime)
GetSummaryByContact(Integer,DateTime,DateTime)
GetSummaryByGroup(Integer,DateTime,DateTime)
GetUpcomingSales(Integer,Integer)
Returns all open sales, sorted descending with the latest first.HasGuide(Integer)
Does this sale have a sale guide associated with its sale type?HasGuideActivities(Integer)
HasStakeholderSetting(Integer)
IsNumberValid(Integer,String)
Checks if the number is unique or required.The setting is configured from admin under system options.
OfferAutoNextStageOnApppointmentCompleted(Integer)
SaveSaleEntity(NSSaleEntity)
Updates the existing NSSaleEntity or creates a new NSSaleEntity if the ID parameter is 0.SaveSaleStakeholder(NSSaleStakeholder)
Updates the existing NSSaleStakeholder or creates a new NSSaleStakeholder if the id parameter is 0SetAsLost(Integer[])
Changes the status of one or more sales to Lost.This does not affect the Completed state of the sale.
SetAsSold(Integer[])
Changes the status of one or more Sales to Sold.This does not mark them as Completed.