Skip to main content

I have created a K2 application from a SharePoint Online list.  The application includes smart objects, views. forms, and workflows.  I have configured the workflow to be triggered when an item is added, changed, or deleted.  From within the workflow, is there a way to know which event triggered it?  I would like to use this information to build an email message to the user to indicate if a new item was added or changed, or deleted.

Hi;

 

I would suggest you absorb the event that triggered te workflow by refference, please see the following link:-

https://help.k2.com/onlinehelp/k2five/userguide/5.0/default.htm#K2_Workflow_Designer/Start/SharePoint/Start-SP-Event.htm

 

regards;

widson.


Thanks Widson, but unfortuantely that doesn't answer my question.  My workflow could be triggered one of 4 ways: manually, when an item is added, changed, or deleted.  Once the workflow starts I would like to know which event triggered it to start.  I don't see a variable that I can interrogate for that information.


Hi  @kxgirvin;

 

I appreciate your feedback,In addition to my previous response--- please take a note on the following:- 

This content applies to legacy design tools (such as K2 Studio, K2 for Visual Studio, or the Silverlight-based K2 workflow design tool). If you have upgraded from K2 blackpearl 4.7 to K2 Five, these tools may still be available for use in your environment. These legacy tools will not be available in new installations of K2 Five. These legacy tools may also not be supported, or behave as described here, in future updates or versions of K2. See KB002726 /(https://help.k2.com/kb002726) for a comparison of capabilities between K2 4.7 and K2 Five.

 

Here you can be able to see which event triggered the workflow ( look at the Windows event viewer (Start > Administrative Tools > Event Viewer).

 

Reference:- https://help.k2.com/onlinehelp/k2five/userguide/5.2/default.htm#legacydesigntools/workflow/build/workflow_start_options.htm

 

Should you find any of the above content useful kindly Mark such as "Kudo, Accepted Solution and/or MeToo options", as this will assist other community members with similar issues.

 

Thank you...

 

Kind regards;

Widson.

 


Good day kxgirvin,

 

Have you tried using the View Flow report to see the current status of a workflow instance and the path it followed. It usually gives you a visual representation of your workflow and helps you to gain more insight into events that occurred during the workflow instance.

 

Please see through the following documentation link to understand and use the View flow functionality.

Kindly feel free to mark as “Accepted solution, kudo and/me too” if you find this information answered your question or leads to your answer.

 

Thank you and kind regards,

Dumisani

 

K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.

 

 

 

 


Hello kxgirvin,

 

Unfortunately that cannot be achieved in that manner, at lease based on my experience. However you can log a feature request on the following website (https://ideas.k2.com) to perhaps have the idea implemented on future releases of K2.

 

Having said the above, how about if you do it manually by using parameters in your "output mappings" of your Create/Save/Delete events and then pass that parameter to a workflow variable and then use that variable on your email as an indicator. See below how I managed to do it for you:

 

First on your workflow, create a variable and name it "MyAction" and then drag it into your email as seen on the image below:

 

 

 

 

 

 

 

 

 

 

I hope this helps you. 

 

Should you find this helpful please can you mark it as such by "Accept as solution" or "Kudo" as it will be helpful to other users of the community who encounter similar issues.

 

Thanks,

Katleho


Reply