cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cortese98
Helper I
Helper I

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
cortese98
Helper I
Helper I

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

View solution in original post

2 REPLIES 2
fchopo
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!
cortese98
Helper I
Helper I

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

View solution in original post

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (74,723)