Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How can I find out whether a task is workflow-generated?

andrewcampbell
Kilo Explorer

Hey folks,

 

Newbie here...I'm wondering if there is a way that I can tell whether a task is workflow-generated?   I had hoped that there would be a "created-by" field which would indicate some system account, but the only field I can find like this contains the account of the user who created the change to which the workflow-generated change task I was using as an example belonged.

 

Thanks in advance!

Andy

1 ACCEPTED SOLUTION

acretion
Tera Expert

You could look to see if the 'wf_activity' field is populated maybe? I'm guessing this should be blank for manually created tasks but not 100% sure.


View solution in original post

6 REPLIES 6

mitchell_stutle
Mega Expert

Hey Andrew,



I just went through something similar to this and it didn't look like Opened By or Created By were going to help. You can add a true/false field to the task table and have it set to true for tasks created in the workflow.



- Mitch Stutler


Thanks!     This is the way I actually developed it, since I didn't find out about the wf_activity.   This does work well enough, but is a potential maintainability problem down the road.   I plan to switch over to using the wf_activity field instead on a later sprint.


acretion
Tera Expert

You could look to see if the 'wf_activity' field is populated maybe? I'm guessing this should be blank for manually created tasks but not 100% sure.


Didn't know about that rascal!   That's just what I was looking for!   Thanks!