Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Local Procedures

Posted on by 55

Hi,

I am trying to call the local procedure CalcCubage on Table Item Unit of Measure from a table extension object.

Is it possible ?

Thanks

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,647 Super User 2024 Season 2 on at
    RE: Local Procedures

    Hi, Unfortunately, this is not possible.

    PS: This may not be related to your question, we can access some global variables in the extension.

    More details: https://yzhums.com/21738/

    Thanks.

    ZHU

  • Suggested answer
    matthias_rabus Profile Picture
    matthias_rabus 160 on at
    RE: Local Procedures

    Or even better:

    Ask Microsoft to make the procedure global in the AlAppExtensions repo on github:

    github.com/.../issues

  • Suggested answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: Local Procedures

    A local procedure can't be called from outside the object. That's why it is called local.

    You will need to copy the procedure into your own extension.

  • Daniel Rimmelzwaan Profile Picture
    Daniel Rimmelzwaan 3,485 on at
    RE: Local Procedures

    No that is not possible. It should be, and I think this has been mentioned in the ideas list, but unfortunately you cannot access local procedures or even global variables of the source object in extension objects.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans