Skip to main content

Notifications

Power Automate - Power Automate Desktop
Suggested answer

PAD Custom Action Return Object

(1) ShareShare
ReportReport
Posted on by 45
Hello Power Automate Masters,
 
I'm writing a PAD custom action and I want it to return an object, say a Dictionary<string, List<string>>. Currently my workaround is output a JSON string and use a Convert JSON string to custom object action following that. I'm wondering how to cast the Dictionary to a PAD recognizable custom object in the custom action codes?
 
Thank you.
Categories:
  • Suggested answer
    Deenuji_Loganathan_ Profile Picture
    Deenuji_Loganathan_ 6,075 on at
    PAD Custom Action Return Object
    Hi there,
    Do not complicate your custom action. Simply use a string as your output data type and return the in JSON format.
     
    Once you deploy and start using your custom object in Power Automate Desktop, you will receive the JSON output as a string you can then convert into a custom object.

    Thanks,
    Deenuji Loganathan 👩‍💻
    Power Automate Desktop Community Champion 🤖
    ------------------------------------------------------------------------------------------------------------
    Please consider marking this suggestion as a verified answer if it is useful to you and click on the heart button.

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

Kickstarter Events…

Register for Microsoft Kickstarter Events…

Tuesday Tip #12 Start your Super User…

Welcome to a brand new series, Tuesday Tips…

Tuesday Tip #13 Writing Effective Answers…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 144,858

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,505

Leaderboard