-
Notifications
You must be signed in to change notification settings - Fork 42
Description
Is your feature request related to a problem? Please describe.
We are sometimes doing an analysis of how many emails are actively used in the journeys. Currently, the last existing version of the journey is retrieved. If the last version of the journey is a Draft, then this draft is retrieved. This makes the calculation not accurate, because a Draft is not active and is not sending any emails.
Describe the solution you'd like
I'd like to implement an optional parameter --lastPublished for journey retrieve function. When retrieve is executed with this parameter - REST GET API call will be executed with mostRecentVersionOnly=false query parameter to retrieve all versions of the journey, and then only the Published version will be filtered (if there is no Published version then no version is retrieved).
Describe alternatives you've considered
No alternative options using mcdev at the moment.