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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

output list in custom workflow?

(0) ShareShare
ReportReport
Posted on by 5

Hi to all!

Project requirements: create a cwa with string input and List output.

But the values that can be used are Bool, DateTime,Decimal,Double,Money,EntityReference,OptionSetValue and string. List no. Suggestions?

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Emal,

    Please refer to this blog:

    www.c-sharpcorner.com/.../

  • Verified answer
    Bipin D365 Profile Picture
    28,983 Moderator on at

    Hi,

    CWA does not have List data type as output parameter.

    You can create string output and return the list of data as json string which can be parsed by consumer.

    Something like this -

    public class Employee

    {

    public string Name {get;set;},

    public string Email {get;set;}

    }

    List<Employee> employees =new List<Employee>();

    //Add Employee data to List

    //Convert List<Employee> to Json string

    string output=JsonConvert.Serialize<string>(employees);

    Please mark my answer verified if this is helpful!

    Regards,

    Bipin Kumar

    Follow my Blog: xrmdynamicscrm.wordpress.com/

  • Emal Profile Picture
    5 on at

    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 80

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans