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

How to hide the dimension message.

(0) ShareShare
ReportReport
Posted on by 231
Hi everyone,
 
 Is there any way to hide this message in jobs on Business central. Im updating the header dimension field value via coding while im testing im getting this dimension message. I need to skip this message and the default answer is /Yes/
 
 
 
Thanks in Advance.
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    98,349 Super User 2026 Season 1 on at
    Hi, generally, you can subscribe to the event before the message to skip the message.
    For example,
     
    Solutions to this type of problem:  https://yzhums.com/43837/
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • yoheswaran Profile Picture
    231 on at
    Thanks for the reply YUN ZHU for Job Card i need the same process i don't have any event in Job Table object. Here the we have the message in "UpdateJobTaskDimQst".
     
  • Suggested answer
    YUN ZHU Profile Picture
    98,349 Super User 2026 Season 1 on at
    Hi, indeed it's a bit troublesome and I'm sorry I didn't fully confirm it.
    You can subscribe to the above event, skip the whole confirmation process, and then modify the dimensions in your code for the lines
    For example,
     
        [EventSubscriber(ObjectType::Table, Database::Job, OnBeforeUpdateJobTaskDimension, '', false, false)]
        local procedure Job_OnBeforeUpdateJobTaskDimension(var Job: Record Job; FieldNumber: Integer; ShortcutDimCode: Code[20]; var IsHandled: Boolean);
        var
            JobTask: Record "Job Task";
        begin
            IsHandled := true;
    
            JobTask.SetRange("Job No.", Job."No.");
            if JobTask.FindSet(true) then
                repeat
                    case FieldNumber of
                        1:
                            JobTask.Validate("Global Dimension 1 Code", ShortcutDimCode);
                        2:
                            JobTask.Validate("Global Dimension 2 Code", ShortcutDimCode);
                    end;
                    JobTask.Modify();
                until JobTask.Next() = 0;
        end;
     
    Hope this helps.
    Thanks
    ZHU
     

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 1,965 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,125 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 961 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans