Sharing my Power Automate template: Large Gift Notification+Appeal/Fund

2»

Comments

  • Taylor Brown
    edited June 18

    @Alex Wong I agree. So then if there's a gift that's fully for the appeal that I don't want to include, it won't even be included on my digest?

    How would I go about editing my flow?

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

    In the flow somewhere you need to have info on which appeal you want to exclude. (i.e. initialize an Array variable of appeal system record id, or appeal lookup id)

    In your Apply to each gift split loop, if you use appeal system record id, then you will do condition before you do "get an appeal" action, if you use appeal lookup id, then you will need condition after get an appeal action. the condition is check if the appeal system record id (or lookup id) is contains in the array that has the excluded appeal. If condition is false (not an excluded appeal), then add to the appeal variable with the gift split amount.

    then before you "add" the gift data to the Array of gifts for display, you will first condition if the appeal variable has anything. Only add to the variable if there's something in appeal

    hopefully that makes sense. I'm also not sure (1) if your org has gift with blank appeal, need more conditional check (2) how your flow is setup with appeal variable: string or array. So play around and see if you get it

  • Hi Alex, this was so helpful! I'm running into a little issue, though….

    1. When I test it, it still displays the gift in the digest and just doesn't display the appeal I don't want, even if the gift is 100% dedicated to that appeal. How do I do it so that it doesn't display that gift at all in the digest?

    2. it's now displaying the appeals and gifts without the Value showing like this and instead showing it how you had in your chart above ABC123{"value":1900.0}.


  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Facilitator 5 Kudos 5 bbcon 2025 Attendee Badge
    1. before you add the gift info into the variable that holds the gift digest info, you condition is appeal info is empty, if empty, you will not add to the digest
    2. you are not adding the right dynamic content, you need Gift splits amount value
    image.png

    if you want to format the amount as $1,900.01 instead of 1900.01, then do an expression

    image.png

    Expression looks like this: formatNumber(items('Apply_to_each_gift_split')?['amount/value'], 'c')

  • @Alex Wong Fixed the expression!!! The amount is showing up correctly.

    I am so close I can almost taste it, but I'm not doing something right. When I run the flow, it still shows the gift in the gift digest but just hides the appeal. So it looks like

    Name

    GftAmt

    Appeal

    John Doe

    $1,900

    and I don't want to include the gift at all in the digest if the money is dedicated 100% to the appeal I want to exclude.

    These have been my steps… I have a feeling I need to switch something around but am unsure as to what.

    Power Automate - Condition check if appeal lookup ID.jpg

    In this second step, the output is "Gift Splits" even though it says Get a gift

    power automate - condition for each - gift split.jpg power automate - condition 3 expression.jpg
  • Alex Wong
    Alex Wong Community All-Star
    Tenth Anniversary Facilitator 5 Kudos 5 bbcon 2025 Attendee Badge

    is it only 1 appeal that is excluded? or is it possible for more than one?

    is your Appeal variable a string or array variable?

    show your appeal to gift digest action

  • Right now I'm testing only with 1 but it is possible for more than 1.

    I initialized my appeal variable in the beginning as an array variable.

    So this is what my append to array appeal looks like after my 2nd condition (appeal lookup ID contains 26VIPGolfClassic):

    power autoamte - append to array appeal.jpg

    Then it goes into apply to each soft credit —→ apply to each gift fundraiser —→ list gift tributes —→ apply to each tribute —→ format number ——→ final condition (appeal is equal to null) and then applying my gift and donor content to variable, which looks like this:

    power automate - apply gift and content variable.jpg

    Wondering if I need additional info in my initialize appeal variable? Or if it needs to change to string?

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

    since you will have multiple exclude, initialize a new array variable "Exclude Appeals Lookup ID", and init it with varlues like:

    [
      "26VIPGolfClassic"
    ]
    

    when you have more appeal to exclude, you add to this array

    [
      "26VIPGolfClassic",
      "APPEAL_2_EXCLUDE"
    ]
    

    In your Condition check if appeal lookup id contains excluded appeal action, change the condition logic to:

    LEFT: Exclude Appeal Lookup ID
    middle operator: contains
    RIGHT: Lookup ID

    In your Condition 3, where you check if you want to include the gift as a whole to the Email Content array variable, I am not certain that condition is correct "Appeal" is equal to "null", instead here's what you can do to make sure:

    1. When you Initialize Appeal variable, init the value to []
    2. in your Condition 3, do expression of "length(varaibles('Appeal'))" is equal to 0
    3. make sure you re-set the Appeal variable to [] as the last action before end of loop for the list of gift.
  • Oh my gosh!!! It worked! Alex, thank you a million times over for all your help and walking me through this!

  • Hi Alex, when you say reset the appeal variable above, do you mean reset the both the initialized exclude appeal variable and initialize appeal variable? Or just the initialize appeal variable? My flow failed when it ran with the other appeals that I was trying to exclude but didn't on my testing, so wanting to make sure I have all my steps in order.

  • It's also providing me an error for gifts that don't have a campaign attached to them, but I wouldn't think that would be an issue if there were missing campaign ids? The error with the campaign says WorkflowOperationParametersRuntimeMissingValue. The 'inputs.parameters' of workflow operation 'Get_a_campaign' of type 'OpenApiConnection' is not valid. Error details: the resolved string values for the following parameters are invalid, they may not be null or empty: 'campaign_id'.

  • @Alex Wong Hi Alex, update… I did pinpoint the issue. it is those missing campaign ids.

    Some gifts that I imported (the gifts I don't want to include on my daily gift digest) have missing campaign IDs.

    Is there an expression that I can use so that the flow won't break if there are missing campaign ids? Or perhaps that's another condition?

    Or should I just take the whole campaign part out?

    Thanks!

    Taylor

Categories