Sharing my Power Automate Flow: Daily Gift Digest Notification

Options
13

Comments

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Dan Snyder @Susan Fioribello
    while I'm not sure sorting option is ignore or not when using a saved NXT list, the issue is broarder than that.

    When you replace (it is really “delete” and add a new “gift list” action. ALL subsequent use of the dynamic content in the old gift list action will be affected, meaning every dynamic content using old gift list will have to be replaced with the new gift list's dynamic content.

  • @Alex Wong
    The list I'm using is sorted by amount but the list that gets emailed from this flow is not. I'm very new so the coding the language is still a bit confusing but I'm learning.

  • @Susan Fioribello @Alex Wong brings up some good points here.

    First, you will need to delete the action titled “Pull Recent Gift list from RE NXT”. You can do this by clicking on the action and when the settings show up on the left hand panel that comes out, there is a vertical ellipsis (three dots) in the upper right of the side panel. Click on that and select delete.

    6838e189449f1947b9c5dab553020b3c-huge-im

    Then you will want to add the List gifts action from the Blackbaud Raisers Edge NXT Gifts connector.

    0748ee3d15dad911f9d5613fc5aac68b-huge-im

    Once you do that, any fields you pulled from the action you deleted will need to be re-added. In the example below, I have a condition “Number of gifts entered yesterday” that is using the output from my "Pull yesterday gifts entered" action, specifically the Count of the number of gifts. That “Count” field will have to be re-added there and in any subsequent steps.

    f7296c0465c6a0e24fd318eb3009a0a0-huge-im
  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Susan Fioribello
    I don't normally suggest using a SAVED RE NXT Gift List as part of your flow, as it limits the ability for you to have control over how the API provide you information.

    So question is, what is the filter used on the RE NXT saved gift list. Then we can tell you if you can directly use the gift list action to do the same without the saved gift list.

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Erin McKenney
    First of all, I think it is best that you create a new post on your own issue, and if you need to reference the post that you used to import, you can link back to the post. Too many replies makes it hard to see individual problems of members.

    1st problem is in your Add to our Digest action, your screenshot suggest you have an extra double quote at the beginning, that will be a problem. so make sure the action starts with { and ends with }

    2nd problem is your For each subtype on the gift loop, which shouldn't be there. Each gift record can ONLY have one gift subtype, so no loop needed. Your For each subtype on the gift loop is looping the Payments array, which is the problem, as gift subtype is not a property inside the Payments array. To fix, delete the For each subtype on the gift (which also delete the Set gift subtypes action) and Initialize gift subtype variable action. You do not need to use a variable for this nor do you need loop. In the Add to our Digest action, delete the dynamic content that add the GiftSubtype variable (as it no longer exists after you deleted the actions mentioned above. Then in the dynamic content, search for Subtype (which is under your list gifts action section for dynamic content) and directly add Subtype inside the double quote.

    1e0647107baa59ba6439d89e0e13a221-huge-im
  • @Alex Wong Thank you for your help, as always! I really appreciate it!

  • c2eb38e8c8e5735d45027bdddcb50736-huge-im

    I'm a total newbie to Power Automate, so please be gentle! I've imported this flow, but I run into a problem at the review connections step. I use Gmail; I have a connection to Gmail already, but why can't I change the connection from Outlook to Gmail during the import process?

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Gabrielle ReadHess
    I don't think there is anyway around this.

    Since you are using flow, that means you have a Microsoft account, just setup the outlook connection first, then in the editing of the flow later, you can delete the outlook action and use gmail

  • Since CoPilot is of no help to me, I'll ask here:

    Within this flow, when getting the gift info, I have the output of a JSON of a key/value pair with key "type" and value "RecurringGiftPayment". Just as there is an action to format the gift amount to currency, how do I create a flow action that would recognize that the Gift Type is written in Capital/Camel Case without spaces, and reformat that value so that it is output as three separate words, the way humans would read it?

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Kevin Fletcher
    normally this kind of thing is easy with regex (regular expression) replace, but unfortunately Power Automate does not have this.

    So the easiest thing to do (since there is a finale # of gift type that are of concern: 10 in all) is to do a replace expression on all gift type: replace(replace(gift_type, ‘RecurringGiftPayment’, ‘Recurring Gift Payment’), ‘PledgePayment’, ‘Pledge Payment’) etc until you got all the one that is in the camel case.

    Another way to do this is to create a “reference table” that is used to look up the proper case from camel case, you can do this in a few ways:

    1. You can also create an excel table that translate the camel case to proper case and then do a get row using the camel case as identifier to get the proper case, though this would add more complexity to your flow that isn't really needed.
    2. You can create a JSON array of objects that has the camcel case and proper case, which then you can use a Filter Array where camel case = gift type and then use the proper case from the filtered array output.
  • Hello! With the recent talk of updating to the new Constituent and Gift connectors, I'm attaching a version of Trevor's template using them here. This also uses the generic mail connector, which means it can be imported by anyone, but unfortunately that new tenants will need to copy and paste into another email client action like Gmail or Outlook to be able to send. Enjoy!

    GiftDigestNotification-ModernConnectors.zip

  • @Trevor Kelly Thank you so much for this!! I imported this flow and tweaked a little (added a column so email would show up as a hyperlink that fundraisers can click - not as sophisticated as what Austen Brown showed at BBCON with different templates for different situations, but I'm proud, this is my first real-time flow and it works!).

  • @Carlene Johnson I didn't see an answer to your question. I will have the same issue. Did you get it figured out?

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @BrieAnna Clothier
    Assuming you are talking about assigned solicitor (constituent relationship), you need to make additional calls to get the information. Not particuarly difficult.

    cdbdc0f1343520cb4ead82fb78177295-huge-im
    input the constituent system id from the gift to get fundraiser assignment

    you will get back the fundraiser_id, which is the constituent system record id of the fundraiser. You will need call the Get a cosntituent action using the fundraiser_id to get name of the fundraiser.

  • Apologies if this has been asked and answered, but I switched the mail connector to gmail and I am getting one email summary for every gift that is identified (we had 21 gifts in the list, so I'm getting 21 emails), I just want one summary. Thanks in advance to anyone who has a solution.

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Jana Viets
    what you like did when you change flow is that you added the gmail action inside the apply to teach, so it is sending 1 email per gift. you need to move the gmail actio outside / after the apply to each

  • @Alex Wong thanks for the response. I moved the email action out and the resulting email test is not populating correctly:

    37ef7609ab7560629a96a8c9f48cd136-huge-im


    21ecc105bf202bcb41d109474e2be212-huge-im

    Any idea what is going wrong? Something with the dynamic field Output that should have the gift list?

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Jana Viets
    from your screenshot, a bit hard to see, it looks like:

    • for each gift in gift list
      • condition to check if gift list returned any gift
        • if true
          • for each gift that qualifies (i don't know what this is for, there shouldn't have been another for each here)
            • i don't know what is happening as your screenshot doesn't show, just say there's 4 actions inside this for each
          • create html table
          • compose to fix html
          • another compose for style (it seems)
        • if false
          • does nothing
    • send email

    This flow has “actions” that makes no sense to me. (the for each gift that qualifies). So i'm not surprise your content for emailing isn't working.

    my suggestion is for you to import the flow again, to see where you may have made changes that affected the flow. and then fix from there.

    If you want, you can bring this flow to next week's power automate user group and we can look at this and solve it at the meeting.

  • Sunshine Reinken Watson
    Sunshine Reinken Watson Community All-Star
    Ancient Membership 250 Likes 100 Comments Name Dropper

    @Trevor Kelly
    Are there any step-by-step instructions for adding the gifts to a shared list with a link to the list in the email instead of loading sensitive information into an email?

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Sunshine Reinken Watson
    if you got the link to the shared list, adding the link directly into the final send email action, removing from that action anything you don't want to show (i.e. dynamic content of create html table action)

  • Sunshine Reinken Watson
    Sunshine Reinken Watson Community All-Star
    Ancient Membership 250 Likes 100 Comments Name Dropper

    @Alex Wong
    Thanks. I'm not sure how to make the list. This is my first RE NXT flow. I'm poking around and trying to figure this out :)

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Sunshine Reinken Watson
    you can “start” with a “saved shared gift list”. Meaning, your automation flow's gift list action will use a saved shared gift list. Then you can go ahead and link to this list in the email action.

    Another option (more complex) is to create the gift list on the fly using this API endpoint https://developer.sky.blackbaud.com/api#api=list&operation=CreateListFromIds. Meaning your gift list action can be using other filter parameter instead of a “saved gift list”, then after you are done in the gift loop, you will call the create list from id api endpoint to create a new gift list, and then link it in your email action

  • @Sunshine Reinken Watson
    Here is the video training that goes with this flow. Trevor Kelley doesn't work at Blackbaud anymore. In this he also adds in the Fund info into the list.



  • @Alex Wong Apologies for hijacking this reply thread, but I see that the original creator is no longer with BB. I'm wondering if someone can help me with this flow? I am new to PA, but have done a couple of the BBDevDays sessions and thought I understood using a template. However, I'm running into an issue I don't see mentioned anywhere else. When I get to the “Pull Gift List from RENXT” step, there's a custom value in the List box. I have tried running the flow with this, but it fails. I deleted that custom value and attempted to use the drop down, but the only “Lists” on the drop down are NOT from my database. None of “My” Lists are on the drop down. (I confirmed the connectors for the flow are my email, my NXT gifts, my NXT constituents). I can't seem to find a way to get my Lists in the drop down. I tried entering the URL of the list I'm trying to use into that Custom Value bar, and the flow said it was running, but after >10 minutes it was still stuck on this Pull Gift List from NXT step and eventually I cancelled the run. Can someone help me figure out what's happening here pretty please? I keep thinking I can't be this dense… but here we are ? Thank you for any help you can give me!

    af0c9f7b1ba4ade6e128af9cb80529c9-huge-1t
    6b028a0c4cd4c12428c17b984b1d0ce3-huge-2t
    896b6b2fa5b7cba9c601f77ea8a4d051-huge-3t
    db96b5e2eacad16648d4e89cadea12bf-huge-5r
    2df1f3795dabf8e1d76d2e69efc01bd3-huge-4m
    10a8bd8c15555b51477894e8aedf8906-huge-6r
    f429b71538ec0a4643d7e10b3db8921f-huge-7c
  • Austen Brown
    Austen Brown Community All-Star
    Ninth Anniversary 1,500 Likes 1000 Comments Name Dropper

    @Audrey Morris - It sounds like the gifts connector is pointing to another database. Try to add a new connection for your org's database the list gifts action/gifts connector. Switch to the old designer (can't find a way to do this in the new designer) - follow steps below to add a new connection. Repeat for any actions that take to another connector like if you have a ‘get a constituent’ you'll need to repeat this process. Then run your flow again.

    9495b6891a56f825419661f6b43d55b8-huge-im
    Toggle (upper right corner) to the ‘off’ position to switch to the old designer.
    e295356ba167a3e2957c0274ef8d306a-huge-im
    Click on the ellipsis on the right
    e80ecd36327c5d31e33a2ad0f2c8626e-huge-im
    Select add a new connection, and put in your login credentials to your org's database
  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Audrey Morris
    Couple of things to try:

    1. check if your org has more than one environment of RE NXT
    2. create a new flow (not from a template) and look for Blackbaud RE NXT Gift connector's List Gift action, and then see if the “List drop down” has your list.
  • @Austen Brown it worked!! I had to switch the mail connector to Office 365 (not sure why) but it's fabulous. Thank you so much for your help - nice to see you today too!

    Also, just FYI, it looks like you can change the connection in New Designer by clicking on the box “Get Constituent Details” then it shows a “Change connection” option. ?

    6ea4677bf69dea162c531ca1de9281b9-huge-12


  • @Alex Wong Thank you for replying! There was a problem with the connector, but with Austen's help all is fixed now. Great session today - your stuff is always so helpful!

  • @Alex Wong I had the same question as BrieAnna and thanks to your steps, I was able to add the fundraiser. However, I'm wondering if there would be a way to filter by fundraiser type so that not all fundraiser's assigned to the constituent appear? Thanks in advance for any insight you can provide!

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary 1,500 Likes 2500 Comments Name Dropper

    @Jenni Cornella
    Yes, you can use “Filter Array” action in the Data connector to filter the list (array) of fundraiser by it's type before processing the filtered list

Categories