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 80

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
    80 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 190

Last 30 days Overall leaderboard