Skip to main content

Notifications

Announcements

No record found.

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

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,942 Super User 2024 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

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels 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.

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans