web
You’re offline. This is a read only version of the page.
close
Skip to main content
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
    RE: Starting a Powershell script when clicking on an action in BC

    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
    94,331 Super User 2025 Season 2 on at
    RE: Starting a Powershell script when clicking on an action in BC

    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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,791

#2
YUN ZHU Profile Picture

YUN ZHU 2,091 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 2,090

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans