Is it possible to know how many times an outbound campaign has been recycled? By API or by another means?
If not, is there an API request for this url that would allow you to retrieve the audits with the filter on the recycled action and the date of the day?
queryPhrase : This field is optional, according to the documentation. It allows you to specify the word(s) to look for.
Based on my testing, if you input a campaignId here, the results will be filtered to focus mainly on the entered Id.
filters: This is an array that contains filter conditions to narrow down your search. There are two filter objects included:
The first filter ensures that only recycle actions are considered, excluding other actions such as updates.
The second filter involves time-based filtering. In my case, I used this month as a timestamp.
If you create a data ction to make these API calls, you only need to set up:
One input that holds the campaignId you are interested in.
One output that holds the total value indicating how many times the campaign has been recycled.
The data action's response will consist of an array of objects, where each object is related to a recycle action. Since your focus lies in determining the number of recycling actions, you can extract the total field from the output content. This field is defined as an integer.
Below an example of a campaign I recycled 3 times:
Note:
In my example, I hardcoded the timestamp value for simplicity. You can create an input parameter that enables you to pass a value dynamically from Architect for example.