Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Using Multioption Select Lists

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a D365 (CDS/Dataverse) field on an entity that supports multiple options to be picked for the field.

 

When I run the flow, the results come back as one big string.  

 

Greggomatic_0-1620229366118.png

Is it possible to have the results come through as an Array?  And/or convert?

 

The next step I want to do is to have an "Apply For Each" action that goes through each value that is retrieved and determines the next action.

 

Is this possible?

 

Thank you - Greg.

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: Using Multioption Select Lists

    @Greggomatic 

    Did you initialize your variable as a string or array?

     

     

  • IAmGreg Profile Picture
    on at
    Re: Using Multioption Select Lists

    Hi,

     

    Can you share the code for your split function?

     

    I have an init variable command and using the following code

     

    split(@{outputs('Get_Data')?['body/cs_delivery']},',')

     

    However, no matter what I do I always get the following error...

     

    The variable 'Channel_Delivery' of type 'Array' cannot be initialized or updated with value of type 'String'. The variable 'Channel_Delivery' only supports values of types 'Array'.

     

    Thanks - Greg

  • Rilsina Pegado Profile Picture
    on at
    Re: Using Multioption Select Lists

    Hi,

     

    The Output of Multiselect Option set is in form of comma separated string, you can split it and then use apply to each on the output.

    Rilsina_0-1620381488181.png

     

    If this post helps, please accept it as Solution.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,537 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,908 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow