Skip to main content
Post a question

Notifications

Community site session details

Community site session details

Session Id : 7H4aMtDKhVkEekUVIDv7vk
Dynamics 365 Community / Blogs / Tina Menezes Blog / Procedure to create custom ...

Procedure to create custom action to select multiple records and modify them in Dynamics NAV

Tina Menezes Profile Picture Tina Menezes 2,582

Introduction: In Dynamics NAV, we can code to select multiple records on a page at a time and modify the selected records at once.

To demonstrate the same, I will be creating a custom action on a page which will modify all the records selected by the user.

Pre-Requisite:

Microsoft Dynamics NAV

Procedure:

  1. I have created a custom table which stores ‘Employee Details’ as shown below

image001

  1. On the above shown page, a Boolean field is present viz. ‘Experienced Employee’. Also I have created a custom action ‘Select Experienced Employees’ in actions.

image003

The above action when clicked will modify the selected employee records and check the ‘Experienced Employee’ Boolean variable.

  1. The C/AL code written in the action ‘Select Experienced Employee’ is as follows:

image005

  1. Now, I will be selecting Employee Nos. E0001, E0003 and E0004 and click the action ‘Select Experienced Employees’ which will check the ‘Experienced Employee’ Boolean variable.

 image006

image008

Thank you!

 

 


This was originally posted here.

Comments

*This post is locked for comments