Gift Custom Fields in Acknowledgement Merge letter

Options

I have an existing flow that produces tax letters. We want to add some additional merge fields which are gift custom fields. For example, the gift has a Letter Signer custom field and a Letter Title custom field. I have added these two additional dynamic content fields to the word file and see those fields in the populate a word template in the apply to all. Any suggestions on what to do next to get those specific gift custom fields into the flow so I can map them in the word merge?

Thanks!

Comments

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary Kudos 5 PowerUp Challenge #3 Gift Management Name Dropper

    @Carla Murphy

    • Use list gift custom fields action
    • use Filter Array on the returned “value” dynamic content, (make sure it is the “value” dynamic content that say “The set of items included int he response”), and filter on category = “Letter Signer
    a3454db227ef79d372c49c2e844faeab-huge-im
    • use a 2nd Filter Array on the same returned “value” dynamic content, and filter on category = “Letter Title
    • Filter Array will return an array EVEN when there is only 1 custom field matched. So you will have to use a “first()" expression on the 2 Filter Array actions.

    NOTE: DO NOT use New Designer of flow, there is a bug with the New Designer that Filter Array dynamic content is selected incorrectly. Use Old Deisnger.

    81d9a304938e6dad1458411ff65f46fe-huge-im

    Expression used in the Compose (where you will use in your Populate Word Template action):

    Add to Letter Signer FIeld in Word: @{first(body('Filter_array_-_letter_signer'))?['value']}

    Add to Letter Signer FIeld in Word: @{first(body('Filter_array_-_letter_title'))?['value']}

  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary Kudos 5 PowerUp Challenge #3 Gift Management Name Dropper

    @Carla Murphy
    My previous post tells you how to do it.

    This post is questioning why you put signer and title (not sure what letter title does) in gift custom field? shouldn't most if not all tax letter sign by same person? I understand you may want to make it more dynamic to change in the case of that signer changes due to staffing change, but it is more work to have to make sure every gift have these 2 attributes.

    If you simply want a more dynamic way to change signer when the time comes that need that piece of info changed, you can use a SharePoint list, or excel, no need to put in every gift record.

  • @Alex Wong Hi Alex, I added the following to the Apply to all but when I try to add the expressions to the word template, it tells me the expression is invalid. Do I have to do a compose before I insert anything into the populate a word template?

    Do I have to do anything in the actual word template with the dynamic contact? Thanks for your guidance!

    78f707f789b6347adb90bd7206f0d6f0-huge-im
    d8441b66ba9119a8f092c57844b51c44-huge-im


  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary Kudos 5 PowerUp Challenge #3 Gift Management Name Dropper

    @Carla Murphy
    The expression is:

    first(body('Filter_array_-_letter_signer'))?['value']

    first(body('Filter_array_-_letter_title'))?['value']

    The @{} are used to paste directly into the field, instead of the expression “input box”.

  • @Alex Wong - Thanks Alex - I should have known that one. I have it running now, but it's not showing the LetterSigner or LetterTitle in the raw input, but it's on the RE gift record.

    934c17bc04f71cc2103243b276b7a5e2-huge-im
    4e0d99cd17d0b660add529b2befccf06-huge-im

    I also noticed that the individual letter outside of the apply to all has something funky in the salutation field. Any idea how to fix this?

    2000631a0c29d4535a47dcef4f8558aa-huge-im


  • Alex Wong
    Alex Wong Community All-Star
    Ninth Anniversary Kudos 5 PowerUp Challenge #3 Gift Management Name Dropper

    @Carla Murphy
    Check the list gift custom fields action to make sure you got custom fields back for the gift system id you specified.

    Then check your filter array action to make sure the input and output is correct (show some screenshot of the edit mode of those actions and run history)

    As for your “dear XXXXXXXX”, you did not select the correct dynamic content for the salutation. look for dynamic content that is the formatted salutation.

Categories