{"title":"SumIndexFields Property","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/properties/devenv-sumindexfields-property/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-sumindexfields-property, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-sumindexfields-property","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Specify which fields should be the aggregation fields in a **SumIndexField Technology (SIFT)** index, if applicable.","date":"2026-10-01","meta":{"topic":"reference"},"outline":[{"level":2,"title":"Applies to","slug":"applies-to","at":175,"chars":25},{"level":2,"title":"Syntax","slug":"syntax","at":200,"chars":161},{"level":2,"title":"Example","slug":"example","at":361,"chars":985},{"level":2,"title":"Remarks","slug":"remarks","at":1346,"chars":301},{"level":2,"title":"Related information","slug":"related-information","at":1647,"chars":146}],"text":"> Version: _Available or changed with runtime version 1.0._\nSpecify which fields should be the \"aggregation fields\" in a SumIndexField Technology (SIFT) index, if applicable.\n## Applies to\n Table key\n## Syntax\n```al\nkey(<key name>;<comma-separated list of lookup fields>) {\n            SumIndexFields=<comma-separated list of aggregation fields>;\n        }\n```\n## Example\n```al\ntable 50100 Student\n{\n    DataClassification = CustomerContent;\n    fields\n    {\n        field(1; Code; Text[50])\n        {\n            DataClassification = EndUserPseudonymousIdentifiers;\n        }\n        field(2; FirstNames; Text[100])\n        {\n            DataClassification = EndUserIdentifiableInformation;\n        }\n        field(3; ECTSPoints; Integer)\n        {\n            DataClassification = CustomerContent;\n        }\n        field(4; NumberOfCourses; Integer)\n        {\n            DataClassification = CustomerContent;\n        }\n    }\n    // this defines a SIFT index on Code, FirstNames with aggregations fields for count, SUM(ECTSPoints), and SUM(NumberOfCourses)\n    // Because MaintainSqlIndex is set to false, no non-clustered index is created on (Code,FirstNames)\n    //\n    keys\n    {\n        key(SIFTKeyOnCode;Code,FirstNames) {\n            SumIndexFields=ECTSPoints,NumberOfCourses;\n            MaintainSqlIndex = false;\n        }\n    }\n}\n```\n## Remarks\nYou can select up to 20 SumIndexFields for each key.\nThe fields must be of a numeric datatype \\(Decimal, Integer, BigInteger, or Duration\\).\nChanging existing keys may affect the behavior of the application since other parts of your application may depend on the existence of certain keys.\n## Related information\ndevenv-properties\ndevenv-maintainsiftindex-property\ndevenv-maintainsqlindex-property\nAL Data Types<../methods-auto/library>"}