56

Summary


Currently, when working with extensions in D365 Business Central both of the following are possible:

  1. Sorting on a physical table's flow field
  2. Sorting on a temporary table's normal field


However, sorting on a temporary table's flow field is not possible.


Sorting on Temporary Table's Flow Field should be possible by extension code in D365 Business Central.



To Reproduce


  1. In a procedure create a temporary record
  2. Calculate a flow field of that record (using CalcFields)
  3. Sort on that flow field (using SetCurrentKey)

^-- This is where the error occurs when you debug


This does not happen if the record isn't declared temporary


Example


You can find code that demonstrates this issue here: https://github.com/microsoft/AL/issues/6948


Category: Development
STATUS DETAILS
New

Comments

D

I don't understand why it was working fine in v22 and now it's not in v23

Category: Development

D

I have a customer for whom this was working fine in v22, but after the upgrade to v23 it is not working again.

Category: Development

D

it will be very helpful.

Because of this, we have to use a Physical table and system performance goes down by that.


Category: Development

D

It will be very helpful to have Sorting on Temporary Table's Flow Field. It will resolve many of our issues.

Category: Development