Add fundraiser to a List of donors !

Hi all,

I do have a list of donors and I wanna add the fundraiser.

Some of them have a fundraiser assigned others no. I'm using a condition to filter that, it is empty(item()?['fundraiser_id']) , but I receive an error

b9446ef6bd458206dd88fdfe40c66071-huge-im

I'm receiving false as output of the condition :

635f236f31d9f6b8b0c5b1bcd7589e27-huge-im

6e840c8b6a1a5162767490ee22e27db4-huge-im

Any help really appreciated.

Comments

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Kudos 5 Facilitator 4 bbcon 2025 Attendee Badge

    @Alejandro Joven
    What is your “Filter array” doing?

    your expression empty(item()?['fundraiser_id']) is looking at the item in your Apply to each loop, which is a constituent record and looking for a property fundraiser_id inside the constituent record, which doesn't exists, therefore empty() of this property is always going to be TRUE and TRUE = FALSE will also go down the FALSE path of the condition.

    List constituent fundraisers action returns a “count” property, which you can use instead in your condition to see if there is any fundraiser or not.

  • @Alex Wong

    Thanks Alex !! That worked !!!

    We have three different types of Fundraisers, therefore I'm searching specifically for one of those.

  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Kudos 5 Facilitator 4 bbcon 2025 Attendee Badge

    @Alejandro Joven
    Then you don't use the “count” property of the list constituent fundraiser action. Your filter will filter the arrray of fundraiser where type=the type you want, so your condition is just going to be using the length() expression to get if length of the filter array action is = 0 or not

  • @Alex Wong
    Thank you Alex !!! Way better !

Categories