Multiselection for Field in Business Central

What is Multiselection?

Multi-selection for fields in Business Central is a feature that allows users to select multiple items from a list, rather than just one. This is particularly useful when working with large lists of data, as it allows users to quickly and easily select multiple items at once.

Multi-selection for fields can also be used in various scenarios like filtering data, applying specific actions to multiple records, and when creating reports.

In addition, you can also use multi-select fields to filter data, allowing users to quickly and easily select multiple items to filter on. This can be particularly useful when working with large lists of data.

It’s also possible to customize the functionality of multi-select fields by using C/AL code, this way you can create custom actions, such as applying specific actions to multiple records, that will be available only for multi-select fields.

There are two ways to write Multiselection.

  • With Codeunit
  • Without Codeunit

Example for Multiselecting

  • Create a table for the institute.
  • Create a List page and Card page For Institute.
  • In Institute, fields will be Id, Name, and Description.
  • Create a Table, List page, and Card page for DEMO (In the Demo page for institute Name multi-selecting will apply).
  • In the Demo, page creates the field Id, Institute Name(Multiselecting from the Institute List page).

1. With Codeunit

Institute Table

As wanted, a multiselection from Institute List Page will write this code on Institute List Page

Demo Table

In the Demo Page as we want Multiselection for the Institute name writing this code on the Demo Card page

Codeunit for Multiselection

2. The second way to do a Multiselection is without a Codeunit, and without writing any code in the Institute name

Will be Referring to the same table shown above for Institute Table

-Institute List Page

Demo Card Page

In summary, Multi-selection for fields in Business Central is a useful feature that allows users to select multiple items from a list, rather than just one. making it easier to work with copious amounts of data. It allows developers to customize the functionality of multi-select fields by using C/AL code, providing more flexibility.

Pooja Zinjurke

Technical Consultant – D365 BC

Addend Analytics

Addend Analytics is a Microsoft Gold Partner based in Mumbai, India, and a branch office in the U.S.

Addend has successfully implemented 100+ Microsoft Power BI and Business Central projects for 100+ clients across sectors like Financial Services, Banking, Insurance, Retail, Sales, Manufacturing, Real estate, Logistics, and Healthcare in countries like the US, Europe, Switzerland, and Australia.

Get a free consultation now by emailing us or contacting us.