Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Get latest version number of many appian object via code

I want to get latest version number of 50+ appian objects. Is there a way to write some script to get there version number based on their names. Currently i had to open each objects manually and note its version number.

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    Hi, you can use the below code but it will be used for some component only which you have to check. I check it for Expression rules, Constants and for interfaces. It won't run for Process model, DT, DS.

    a!localVariables(
      local!items: getcontentobjectswithnumofversions(1, "all", false()),
      local!itemsToCheck: a!forEach(
        items: local!items,
        expression: {
          Name: keyval(fv!item, "Name", ": ", ",UUID"),
          version: keyval(
            fv!item,
            "Total versions",
            ": ",
            ",Created"
          )
        }
      ),
      index(
        local!itemsToCheck,
        wherecontains(
          "UAC_account",
          a!flatten(local!itemsToCheck.Name)
        ),
        {}
      )
    )

Reply
  • 0
    Certified Lead Developer

    Hi, you can use the below code but it will be used for some component only which you have to check. I check it for Expression rules, Constants and for interfaces. It won't run for Process model, DT, DS.

    a!localVariables(
      local!items: getcontentobjectswithnumofversions(1, "all", false()),
      local!itemsToCheck: a!forEach(
        items: local!items,
        expression: {
          Name: keyval(fv!item, "Name", ": ", ",UUID"),
          version: keyval(
            fv!item,
            "Total versions",
            ": ",
            ",Created"
          )
        }
      ),
      index(
        local!itemsToCheck,
        wherecontains(
          "UAC_account",
          a!flatten(local!itemsToCheck.Name)
        ),
        {}
      )
    )

Children