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 / Coding in Power Automa...
Power Automate
Answered

Coding in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 6

I am new to Power Platform and I wanted to know is there any way to write custom code in Power Automate Desktop Application? If so what is the procedure to write the code and what are the languages supported.

I have the same question (0)
  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This is what I found:

     

    Power Automate Desktop enables you to automate complex scenarios using scripts in VBScript, JavaScript, PowerShell, and Python.

     

    https://docs.microsoft.com/en-us/learn/modules/pad-scripting/

     

    Hope this helps!

  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey @Preethi16 ,

     

    In Power Automate Desktop you can execute Python, VB, and JavaScript code samples. I

     

    Just Search for RUN on the actions blade -

     

    CFernandes_3-1619550368528.png

     

    In this example I am using PowerShell Code to Convert a File to a Base64 string, which we will use in the Invoke Web Service action.

     

    [convert]::ToBase64String((Get-Content -path "C:\Users\ClavinFernandes\Desktop\clav.txt" -Encoding byte))

     

    CFernandes_2-1619550248445.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard