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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

how to pass input parameter as list in custom workflow

(0) ShareShare
ReportReport
Posted on by 2,510

I am trying to pass multiple id in a list as the input parameter in custom workflow, how can we set the input parameter type, it looks like I can not define the list type for the inargument?

 public InArgument<List> fromuser { get; set; }


*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at
    RE: how to pass input parameter as list in custom workflow

    If im not wrong we can't pass list or array as input parameter in custom workflow activity

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at
    RE: how to pass input parameter as list in custom workflow

    That's correct. Lists are not one of the parameters that you can pass to a custom workflow.

    You can put in a separated string (for example: value1;value2;value3...) and split it into multiple values from within the workflow.

    Hope that helps.

  • sdnd2000 Profile Picture
    2,510 on at
    RE: how to pass input parameter as list in custom workflow

    I am trying to create email custom workflow, what I am trying to do is get multiple user ids and pass this to input parameter as the "to" field value., then what else I can do for this situation?

  • Suggested answer
    Syed Ibrahim Profile Picture
    6,257 on at
    RE: how to pass input parameter as list in custom workflow

    Pass the entity references and inside the code get all the id and use foreach to literate all the I'd.

  • sdnd2000 Profile Picture
    2,510 on at
    RE: how to pass input parameter as list in custom workflow

    I think each time there is only one entity reference passed as input parameter ?

  • Syed Ibrahim Profile Picture
    6,257 on at
    RE: how to pass input parameter as list in custom workflow

    Yes

  • sdnd2000 Profile Picture
    2,510 on at
    RE: how to pass input parameter as list in custom workflow

    so that means I have to invoke this workflow multiple times, and how to store the ids, 

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: how to pass input parameter as list in custom workflow

    Hi sdnd2000,

    this isnt allowed "by design" by CRM, but you can reach your goal using some tricks.

    Please let me know what is the source of your list (explain me your flow, so i could drive you througth solutions).

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

  • sdnd2000 Profile Picture
    2,510 on at
    RE: how to pass input parameter as list in custom workflow

    The source could be multiple user ids, it is used for email function. I need find out the user and put them in  the "to " field

  • Community Member Profile Picture
    on at
    RE: how to pass input parameter as list in custom workflow

    Hi sdnd2000,

    so you need to refer to one or more user inside an attribute of email entity which is included in the same workflow, is so?

    If you found the answer helpful, please mark as Verified 

    Join my network on LinkedIn      Follow me on Twitter 

    Thank You & Best Regards

    Francesco Picchi

    Microsoft Dynamics CRM Consultant, Bologna, ITALY

    Independent Contractor

    http://www.francescopicchi.com

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#1
UllrSki Profile Picture

UllrSki 2

#3
ED-30091530-0 Profile Picture

ED-30091530-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans