Return the Lastest 5 Actions from a Constituent?

Options

I'd like to list out the last 5 actions of a constituent. My first thought was to sort the List Actions in descending order and then limit it to return 5 items. I'm not sure if that will work.

Does anyone know a way I can filter the List Actions to return the 5 most recent actions?

In looking at the Get Action List in the API it says its default sort is ascending and there is a sort token but I don't know if I can use it to sort descending:

The default sorting behavior is to list actions in ascending order based on when they were created.

However, the last_modified parameter overrides the default sorting behavior to list actions in ascending order based on when they were last modified. The last_modified parameter also adds the sort_token parameter to the next_link URL to ensure that actions are stably sorted and that order persists when changes occur while working through a paginated list.

If the last_modified and date_added parameters are both specified, the sorting behavior is to list actions based on when they were last modified.

Thanks for any help!

Carolyn

Comments

  • Glen Hutson
    Glen Hutson Blackbaud Employee
    Tenth Anniversary Kudos 3 Name Dropper Participant

    Hey Carolyn,

    There are two Get Action List in the API / Power Automate Connector. One is for “all” actions across all constituents and the other is for a single constituent. The one for a Single Constituent automatically sorts by action date in descending order, but there are no additional sort options.

Categories