Apply to each action fails
My apply to each action keeps failing, after a few successful runs. I have an expression to split the incoming data, but it is not splitting.
Step that fails:

In the flow -

Expression - split(triggerBody()?['data']?['Solicit Codes'], ',')
I think it is missing the “item” step but everything I have tried fails.
Comments
-
@Wendy Bondeson- Hi Wendy, how are the values coming in prior to this step. Are they comma separated already or are you appending them to an array or string? I'm thinking you need to pull each one then add each one. Can you show the previous few steps?
0 -
@Carol Grant they are comma separated. The only previous step are HTTP Request, Validate token, current time and get a constituent.
0 -
@Wendy Bondeson
if what you want to split is: triggerBody()?['data']?['Solicit Codes']and the data is like No Direct Mail,Calendar and you want to split by comma
then split(triggerBody()?['data']?['Solicit Codes'], ‘,’) is correct and it will return an array of 2 strings: No Direct Mail and Calendar
That array should be placed in the apply to each, which it looks like you did, however, your Create a constituent solicit code action is using triggerBody()?['data']?['Solicit Codes'] directly, which is trying to loop 2x, and both time trying to create solicit code No Direct Mail,Calendar.
Instead, delete the dynamic content of the Solicit Codes in your Create a constituent solicit code aciton, and instead, go to expression, and type in item()
4 -
@Alex Wong thank you that was it!!!
1
Categories
- All Categories
- 6 Blackbaud Community Help
- 209 bbcon®
- 1.4K Blackbaud Altru®
- 394 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 359 Blackbaud eTapestry®
- 2.5K Blackbaud Financial Edge NXT®
- 646 Blackbaud Grantmaking™
- 563 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 934 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.4K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 243 ResearchPoint™
- 118 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 238 The Tap (Just for Fun)
- 33 Blackbaud Community Challenges
- 28 PowerUp Challenges
- 3 (Open) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 779 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)


