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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to show RecordLink on Service Order

(0) ShareShare
ReportReport
Posted on by

Hi 

I'm trying to some how show the RecordLink of type=Link on a Service Order. 

In the Factbox I just see the notes. Is there any possibilities to show the link without extending the service order page?

pastedimage1583315692869v1.png

I have the same question (0)
  • Suggested answer
    keoma Profile Picture
    32,729 on at

    that needs a customization. the factbox is set to visible=false per default.

    to change that you can use the al object designer extension in vs-code. there open the service order page. you find at the end the factboxes list, something like that:

    ...

       area(FactBoxes)

       {

         ....

         {

         }

         part(Control1906530507;"Service Item Line FactBox")

         {

         }

         systempart(Control1900383207;RecordLinks)

         {

         }

         systempart(Control1905767507;Notes)

         {

         }

       }

    to change the visibility you need the name of the recordlinks factbox, which is here Control1900383207. depends maybe from the bc version.

    then develope the page extension:

    pageextension 50101 ServiceOrderExt extends "Service Order"

    {

       layout

       {

           modify(Control1900383207)

           {

               Visible = true;

           }

       }

    }

    publish the extension to your target bc and the recordlinks factbox is shown.

  • Community Member Profile Picture
    on at

    So you don't think it will be possible without extending the Service Order page?

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    You can perhaps raise this issue at http://aka.ms/bcideas.

    Thanks.

  • Community Member Profile Picture
    on at

    Hi Marco

    It redirects me to Microsofts official page (https://www.microsoft.com/da-dk/?ref=aka). Do you know where I can find the page you have mentioned?

  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    That did happen to me twice now in this forum. In this forum, the last "." is part of the link.

    http://aka.ms/bcideas

    Apologies.

    Thanks

  • LewisH95 Profile Picture
    65 on at

    Note Always test code fixes in a controlled environment before you apply the fixes to your production computers.

    To resolve this problem, follow these steps:

    Change the code in the PrepareShipmentHeader function in the Serv-Documents Mgt. codeunit (5988) as follow:

    Existing code

    ...

    ServShptHeader."No." := "Shipping No.";

    IF "Document Type" = "Document Type"::Order THEN BEGIN

    ServShptHeader."Order No. Series" := "No. Series";

    ServShptHeader."Order No." := "No.";

    END;

    ServShptHeader."Source Code" := SrcCode;

    ServShptHeader."User ID" := USERID;

    ServShptHeader."No. Printed" := 0;

    ServShptHeader.INSERT;

    ...

    Replacement code

    ...

    ServShptHeader."No." := "Shipping No.";

    IF "Document Type" = "Document Type"::Order THEN BEGIN

    ServShptHeader."Order No. Series" := "No. Series";

    ServShptHeader."Order No." := "No.";

    END;

    // Add the following lines.

     IF ServMgtSetup."Copy Comments Order to Shpt." THEN

     ServShptHeader.COPYLINKS(ServHeader);

    // End of the lines.

    ServShptHeader."Source Code" := SrcCode;

    ServShptHeader."User ID" := USERID;

    ServShptHeader."No. Printed" := 0;

    ServShptHeader.INSERT;

    ...

    Change the code in the PrepareInvoiceHeader function in the Serv-Documents Mgt. codeunit (5988) as follow:

    Existing code

    ...

    IF "Posting No." <> '' THEN BEGIN

    ServInvHeader."No." := "Posting No.";

    Window.UPDATE(1,STRSUBSTNO(Text007,"Document Type","No.",ServInvHeader."No."));

    END;

    END;

    ServInvHeader."Source Code" := SrcCode;

    ServInvHeader."User ID" := USERID;

    ServInvHeader."No. Printed" := 0;

    ServInvHeader.INSERT;

    ...

    Replacement code

    ...

    IF "Posting No." <> '' THEN BEGIN

    ServInvHeader."No." := "Posting No.";

    Window.UPDATE(1,STRSUBSTNO(Text007,"Document Type","No.",ServInvHeader."No."));

    END;

    END;

    // Add the following lines.

     IF ServMgtSetup."Copy Comments Order to Invoice" THEN

     ServInvHeader.COPYLINKS(ServHeader);

    // End of the lines.

    ServInvHeader."Source Code" := SrcCode;

    ServInvHeader."User ID" := USERID;

    ServInvHeader."No. Printed" := 0;

    ServInvHeader.INSERT;

    ...

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    there already exists an entry on ideas.

    so follow experience.dynamics.com/.../

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,010

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,270 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans