• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

"sale_new" MDO List

Some tooltip text!
• 3 minutes to read
 • 3 minutes to read

List of sales. Searches sale + company names + person names.

Skips completed sales SkipCompletedSales userpref is set.

Skips sales without quotes if AdditionalInfo contains "hasQuoteOnline=1".

Skips sales without stakeholders if AdditionalInfo contains "stakeholderOnly=1".

Filter sales according to currency if AdditionalInfo contains "hasCurrency=(currency-id)"

Returns sale items only: Id = sale-id, Name = Sale name (company name,dept or project name), Type = "Sale", ExtraInfo = sale heading name.

Completed/Done sales are marked with stylehint = "deleted_item" (but item.deleted = false)

Not complete Lost/Stalled/Sold sales are marked with corresponding style hints.

Implemented by the SaleListProvider class. The name of the MDO list is 'sale_new'.

Additional Attributes

Description Name Example Value
Only Sales with stakeholders stakeholderOnly 1
Only Sales with quotes hasQuoteOnly 1
Only Sales with currency id = value hasCurrency 234

Separator: ;

Sample Request

GET /api/v1/MDOList/sale_new
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: *

Sample Code

var listProvider = SuperOffice.CRM.Lists.SoListProviderFactory.Create("sale_new", forceFlatList: true);
foreach (var item in listProvider.RootItems) {
    Console.WriteLine("{0} {1} {2} {3}", 
         item.Id, ResourceManager.ParseInlineResources(item.Name), item.StyleHint, item.ExtraInfo);
}

Sample Output

Id Name StyleHint ExtraInfo
1 SalgAAAA (Arne'S Kebab, AAvdeling) SalgAAAA
2 SalgFAAF (Arne'S Kebab, AAvdeling) SalgFAAF
3 SalgLAAL (Arne'S Kebab, AAvdeling) lost SalgLAAL
5 SalgWAAW (Yngve'S Fisk & Vilt, YAvdeling) sold SalgWAAW
6 SalgØAAØ (Yngve'S Fisk & Vilt, YAvdeling) SalgØAAØ
7 Salg1AA1 (0-Feil Software AS, 0Avdeling) lost Salg1AA1
8 Salg6AA6 (0-Feil Software AS, 0Avdeling) Salg6AA6
10 SalgAA (0-Feil Software AS, 0Avdeling) lost SalgAA
11 SalgBBBB (Arne'S Kebab, AAvdeling) SalgBBBB
12 SalgGBBG (Arne'S Kebab, AAvdeling) sold SalgGBBG
13 SalgMBBM (Arne'S Kebab, AAvdeling) SalgMBBM
14 SalgRBBR (Yngve'S Fisk & Vilt, YAvdeling) SalgRBBR
15 SalgXBBX (Yngve'S Fisk & Vilt, YAvdeling) lost SalgXBBX
16 SalgÅBBÅ (Yngve'S Fisk & Vilt, YAvdeling) sold SalgÅBBÅ
18 Salg7BB7 (0-Feil Software AS, 0Avdeling) Salg7BB7
19 Salg&BB& (0-Feil Software AS, 0Avdeling) lost Salg&BB&
20 Salg<BB< (0-Feil Software AS, 0Avdeling) Salg<BB<
21 SalgCDDC (Arne'S Kebab, AAvdeling) sold SalgCDDC
23 SalgNDDN (Arne'S Kebab, AAvdeling) SalgNDDN
24 SalgSDDS (Yngve'S Fisk & Vilt, YAvdeling) sold SalgSDDS
25 SalgYDDY (Yngve'S Fisk & Vilt, YAvdeling) SalgYDDY

Related MDO Lists

  • "sale_newheadings"
  • "sale_newheadingswithallitem"
  • "sale_newheadingswithallitemwithnoselection"
  • "sale_newheadingswithnoselection"
  • "sale_newwithallitem"
  • "sale_newwithallitemwithnoselection"
  • "sale_newwithnoselection"
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top