cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Working with Split Options Individually

I have a split compose action that results with 

Vendor 1, Vendor 2, Vendor 3, etc. 


I am using that compose action to loop through a 'create Salesforce object' action. In this example 3 Salesforce items are created. 

 

What I want to do is use each option in the item name. 

Example - 

Customer - Vendor 1

Customer - Vendor 2

Customer - Vendor 3

 

How do I extract each split option to be able to use in a field in my 'create Salesforce object' loop? 

1 ACCEPTED SOLUTION

Accepted Solutions
Frequent Visitor

I found that adding the items() inside the for each loop solved my issue. 

View solution in original post

2 REPLIES 2
Super User II
Super User II

Hello @cortese98 

You could create a counter variable, and increment it for each step inside the apply to each:

Screen Shot 2018-10-10 at 7.27.07 AM.png

 And then use this variable to look for values in the compose action:

split(outputs('compose'),',')[AttachmentCounter]

 

Hope it helps!

Ferran

 

Did I answer your question? Please consider to mark my post as a solution to help others.
Proud to be a Flownaut!
Frequent Visitor

I found that adding the items() inside the for each loop solved my issue. 

View solution in original post

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (7,237)