Skip to content

[FEATURE] Retrieve last published version of the journeys #2422

@yuliialikhyt

Description

@yuliialikhyt

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.

Metadata

Metadata

Assignees

Labels

c/journeyCOMPONENTenhancementNew feature or request; requires increasing the minor version of mcdev. Jira issue-type "Story"

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions