Skip to main content

I need an assistance to figure out how when creating a workflow on one of the lists (List A), i can insert an empty record in a diff share point list (List B)  just so i can get an item ID from the record in list B to be used in the link, which will be emailed to the user from my workflow. Any suggestions will be appreciated.

This is possible, but will likely require that the SmartObject/Data component be generated/exist for ListB.


 


If within a workflow, you can use the Create List Item wizard to create an Item on ListB, leaving all fields blank (maybe except for Required fields), and create the item reference.  The item reference will likely contain the ID of the created item.


https://help.k2.com/onlinehelp/K2ForSharePoint/UserGuide/4.7/default.htm#Thin_Client_Wizards/List_Items_Wizards/Create_List_Item/Create_List_Item.htm?Highlight="create%20list%20item"


 


From the K2 App > SmartObjects section (where the Scope of SmartObject is managed); 


https://help.k2.com/onlinehelp/K2ForSharePoint/UserGuide/4.7/default.htm#Management_and_Administration/ManagingK24SPApplicationSettings.htm?Highlight="Scope"


 


If the appropriate "Scope" is applied, the SmartOject will also surface in the SmartObject tabs in the workflow designer, and as such you can call its Create List Item method and return the ID property to a data label:


https://help.k2.com/onlinehelp/K2ForSharePoint/UserGuide/4.7/default.htm#Build/Workflows/SmartObjectTab.htm


 


If within SmartForms instead, you will likely be able to use a 'Execute a SmartObject Method' and target this ListB SmartObject to create the item and return the ID to a data label, parameter, etc.


https://help.k2.com/onlinehelp/K2smartforms/UserGuide/4.7/default.htm#SF_-_Rule_Designer_-_Actions.html?Highlight="Execute a SmartObject Method"


 


Reply