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
- High Education Program Advisory Group (HE PAG)
- BBCRM PAG Discussions
- Luminate CRM DC Users Group
- DC Luminate CRM Users Group
- Luminate PAG
- 186 bbcon®
- 1.4K Blackbaud Altru®
- 389 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 14 donorCentrics®
- 355 Blackbaud eTapestry®
- 2.4K Blackbaud Financial Edge NXT®
- 616 Blackbaud Grantmaking™
- 542 Blackbaud Education Management Solutions for Higher Education
- 33 Blackbaud Impact Edge™
- 3.1K Blackbaud Education Management Solutions for K-12 Schools
- 909 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 207 JustGiving® from Blackbaud®
- 6.2K Blackbaud Raiser's Edge NXT®
- 3.5K SKY Developer
- 236 ResearchPoint™
- 116 Blackbaud Tuition Management™
- 375 YourCause® from Blackbaud®
- 160 Organizational Best Practices
- 232 The Tap (Just for Fun)
- 31 Blackbaud Community Challenges
- Blackbaud Consultant’s Community
- 19 PowerUp Challenges
- 3 Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 Raiser's Edge NXT PowerUp Challenge: Events
- 3 Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 Raiser's Edge NXT PowerUp Challenge #1 (Query)
- 71 Blackbaud Community All-Stars Discussions
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 743 Community News
- 2.8K Jobs Board
- Community Help Blogs
- 52 Blackbaud SKY® Reporting Announcements
- Blackbaud Consultant’s Community
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)
- Blackbaud Francophone Group
- Blackbaud Community™ Discussions
- Blackbaud Francophone Group