web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Confirmation window in job

(0) ShareShare
ReportReport
Posted on by 95

Hello,

on several occasions I have had to subscribe to an event to prevent a confirmation message from appearing to the user, such as OnMatchUsageUnspecifiedOnBeforeConfirm.

My problem is that I can't find a way to prevent the confirmation message from appearing when changing the "No." field in the job card. Could you help me?.

pastedimage1614250342011v2.png

I have the same question (0)
  • Suggested answer
    Steven Renders Profile Picture
    5,682 Moderator on at

    When you change the Pk field of a table, that is a Rename() event, and by default this popup appears. There's no way to avoid this I think...

    It's to avoid that a user accidentally changes the No. When you click Yes, the No. is changed and also updated in tables that have a relationship to it.

    You could use the OnRename() trigger, or an event on it, to add some extra business logic to it.

    Or, use a page extension to make the field not editable, to avoid the rename from happening and so also no popup...

  • MiguelRospa Profile Picture
    95 on at

    Thank you very much for the reply. What I want to achieve is to update the job code once a series of fields are filled in, and that window does not appear. I understand that it is not possible.

  • Suggested answer
    Steven Renders Profile Picture
    5,682 Moderator on at

    I think you can do it by using the Rename() function in your code and then no popup should be displayed, not 100% sure, but you can give it a try.

  • MiguelRospa Profile Picture
    95 on at

    It works! Thanks a lot!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,091 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,032 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 946 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans