Skip to main content

Notifications

Announcements

No record found.

Business Central forum
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 64,622 Super User 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,775 Super User 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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,768 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,985 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans