How to find the actual number of versions a process model has?

I am trying to use the Appian Smart Service 'Delete Process Model Versions' to remove unwanted old versions of process models. The smart service is working fine, but my question is, "How can I find out how many versions each process model has, so that I know which ones are candidates for version deletion?".

Using a Process Model Version report, I can find out the latest version number, but as the version number does not change when earlier versions are deleted, that is no use to me.

Can anybody tell me how I can find out the actual number of versions a process model has?

OriginalPostID-228639

OriginalPostID-228639

  Discussion posts and replies are publicly visible

Parents
  • The latest version of the Shared Component "Content Details by UUID" now returns the number of versions a process model has:

    Example:

    =getProcessModelDetailsByUUID("0003dd0c-9352-8000-f92f-7f0000014e7a")

    returns

    Type: Process Model, Name: [en_GB=, en_US=Simple Model Does Nothing, it=, fr_FR=], Id:235, UUID:0003dd0c-9352-8000-f92f-7f0000014e7a, Creator: eduardo.fuentes, Last Modified by: eduardo.fuentes, Parent: Eduardo, Parent Id: 6, Location: [Process Models -> Eduardo ], IsPublic: false, Created on: 6/2/16 5:06:26 AM GMT, Last Modified on: 7/14/16 8:15:42 AM GMT, Number of Versions: 5


    which means I can extract the versions using

    =keyval(getProcessModelDetailsByUUID("0003dd0c-9352-8000-f92f-7f0000014e7a"),{"Number of Versions"},":",",")
  • 0
    Certified Lead Developer
    in reply to Eduardo Fuentes
    @Eduardo: out of curiosity - does the plugin return number of CURRENT versions, or just highest version number, or both? I now have a bunch of process models in the system where i've trimmed out (hundreds) of past versions, so it might become useful for me to see the number of current versions as opposed to just the current version number which is what's shown in a PM Report.
  • - You may have already figured this out by now, but I am doing the same thing you mentioned above and I was able to confirm that the plugin will return the current count of versions. I am deleting all but the most recent version with the 'Delete Process Model Versions' smart service (Keep Versions input = 1) and the getProcessModelDetailsByUUID is returning 2 for the version count of all process models. It seems this count is referencing the Draft and the published version.
Reply
  • - You may have already figured this out by now, but I am doing the same thing you mentioned above and I was able to confirm that the plugin will return the current count of versions. I am deleting all but the most recent version with the 'Delete Process Model Versions' smart service (Keep Versions input = 1) and the getProcessModelDetailsByUUID is returning 2 for the version count of all process models. It seems this count is referencing the Draft and the published version.
Children
No Data