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

I can't "Open a Record" during approval of a workflow

(0) ShareShare
ReportReport
Posted on by

Dear all,

I have created a custom workflow on a custom purchase requisition, but I can't Open record before approval. The 'Open Record' button can't respond. So I can't see requisition its self. Could I be missing something?.

Regards,

RomRyan

  • Romryan Profile Picture
    on at

    any suggestion guys?

  • Verified answer
    Chameera Kavinda Profile Picture
    510 on at

    Hi RomRyan.

    Did you subcribe the 'OnConditionalCardPageIDNotFound' event in Page Mnagement codeunit?

    if not try the below code.

        [EventSubscriber(ObjectType::CodeunitCodeunit::"Page Management", 'OnConditionalCardPageIDNotFound''', true, true)]
        local procedure OnConditionalCardPageIDNotFound(RecordRefRecordRefvar CardPageID: Integer)
        begin
            if RecordRef.Number = Database::"Purchase Requisition Header" then begin
                CardPageID := Page::"Purchase Requisition Card";
            end;
        end;
    Thanks.
    Regards,
    Chameera
  • Romryan Profile Picture
    on at

    Chameera Kavinda,

    Thank you for this insight.

    This tells me that there is a part I missed on my custom workflow customization.

    And that is accessing the record from the approval request page.

    I want to implement that code within a custom codeunit, how will my codeunit be triggered or by just publishing the codeunit is enough to open the aprroval record? .

    Thank you again.

  • Romryan Profile Picture
    on at

    Chameera,

    Thank you.

    The code you shared worked like a charm.

    Regards,

    RomRyan

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 719 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 410 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 369 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans