Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

Saving the List item as Different Version as Draft/Published using XML Variable

Saving the List item as Different Version as Draft/Published using XML Variable

  • Last UpdatedJun 25, 2024
  • 2 minute read

There are two kinds of lists, version enabled and version not enabled. If your list is version enabled, you can save the item as a different version as published or draft using System Internal variables. This can be done at the time of setting the value for activity.

Assume that you are creating a workflow and it is attached to the out of box list workflow which is version enabled.

To save the list item as different version as draft/published using Xml Variable

  1. Right click the Start activity and select Activity Properties from the options.

  2. Click the More button in the field.

  3. For the version enabled list, you can see the list of schema in a tree-view under System:Internal. Nodes include Save As NextVersionAsDraft, NextVersionAsPublished and so on. You can use this nodes to save an item in to another version as draft or published.

  4. Use List Query and point to an item that you want to update and save as different version. See Setting up the List Query.

  5. Then drag and drop Update Variable activity. Click Set Variables button in the Set Variables field.

  6. Click the Select link and then click the drop-down list that appears.

  7. Assume that you want to update the item Description having the value 'AVEVA Work Tasks'. So select Description from the drop-down list and enter the value as 'AVEVA Work Tasks'.

  8. Now, you want to save this item as Next Version as Draft. For that click the drop-down.

  9. Select NextVersionAsDraft from the SaveAs options under System:Internal.

  10. Then enter the value as 'True'.

  11. Click OK. This will update the item Title and also will save the item as next version as draft.

    In the same way you can save any item in to different versions like Next Major Version as Published/Draft, Next Minor Version as Published/Draft while updating the item.

    Note: If you select multiple SaveAs conditions and set the value as True, the last condition will be taken into account and the item will be saved based on the last condition. Also for the list that is not version enabled, the system will automatically save the item as published.

TitleResults for “How to create a CRG?”Also Available in