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

Starting a Powershell script when clicking on an action in BC

(0) ShareShare
ReportReport
Posted on by 5

Hello everyone.

Is there a way that I can start a PowerShell script when an action on a page extension is triggered in D365 BC?

pastedimage1668496414592v1.png

Best regards

Silvan

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Maybe scheduling a PowerShell script via Microsoft task scheduler that can invoke a codeunit:

    learn.microsoft.com/.../invoke-navcodeunit

    Thank you.

  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at

    Hi, Although I haven't tried it, I think another solution is to use Power Automate.

    Power Automate documentation: Run PowerShell script:

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/scripting#runpowershellscript

    And

    “For a selected record (V3)” trigger in Power Automate

    https://yzhums.com/25646/

    Hope this helps as well.

    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

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,175

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,476 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,435 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans