web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How execute third-part...
Power Automate
Answered

How execute third-party .dll?

(0) ShareShare
ReportReport
Posted on by 78

Hello. I have several libraries written in C #. How can I execute methods in PAD?

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Hi @evilnw 

     

    Can you check the rundll command which you can try running either via "Run DOS command" (OR maybe "Run application)

    https://stackoverflow.com/questions/3044395/how-do-i-execute-a-dll-file

    https://www.techwalla.com/articles/how-to-run-a-dll-as-an-exe

     

     

  • Verified answer
    evilnw Profile Picture
    78 on at

    Find solution. You can using action Run Powershell Script for executing .net library.

    Set-Location C:\Projects\NvSearch\bin\Debug\net48\
    [void][Reflection.Assembly]::LoadFile("C:\Projects\NvSearch\bin\Debug\net48\NvSearch.dll")
    [NvSearch.Class1]::Test("test", 2)

     

    Desciption:

    Set-Location C:\Projects\Libs\ - Path to your library folder

    [void][Reflection.Assembly]::LoadFile("C:\Projects\Libs\MyLIb.dll")  - Path to your library

    [LibNamespace.TestClass]::TestMethod("hello", 1) -

    LibNamespace - namespace in your lib

    TestClass - сlass name

    TestMethod - method name in TestClass

    ("test", 2) - method args

     

    Powershell 6+ required if you need to execute net5.0 library

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 594

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 281 Super User 2026 Season 1

Last 30 days Overall leaderboard