Passing ids to the WindowsWorkflow

Build 1501 on 14/Nov/2017  This topic last edited on: 25/Aug/2014, at 13:06

WindowsWorkflows which perform a set of actions on objects in the GN4 database need the ids of the objects that will be effected. Typically, these are the ids of the currently selected objects, and are passed through the menu entry with the syntax:

           ids=' + this.menuWebPart.selectedIdList(),null,820,650);"

 

NOTE: When creating a new object, the WindowsWorkflow needs the folder id where the object will be created. This is passed as a parameter, rather than as an id list, as in the example below:

navigateUrl="javascript:this.menuWebPart.showDialog('NewObjectForm.aspx?type=story&objectUI=newStory&

            pars=folderId:'+this.menuWebPart.currentIdList( this.menuItem.CurrentObjectPath) ,null,820,650);"

See also

Passing values from a menu entry