Workflows - Current Record & General Tab > Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2017 03:08 PM
Hello All,
Im having a bit of a hard time understanding the concepts behind the Current Record and the Table field in the General Tab in relation to a workflow. Ive looked around the forums, Wiki, and the SN physical handbook from training, and I cannot find an explanation that lets me grasp this concept. The way I can relate what I know about this, is my knowledge in Inbound (Email) Actions. An Inbound (Email) Action has a Target Table field which is basically the Current type of record created by the Inbound Action. So when I create a Workflow and set the Table field in the General Tab, Im thinking that this is the "Target Table" for the workflow and the Current Record will be of that type... but I dont think this is it. To paraphrase my questions:
1. What is the actual Current Record in a workflow or how can I tell what it is? Does it depend on if Im using a Catalog Item, Record Producer, or a Script? What are the Current Records in these cases?
2. When creating a Workflow, in particular the Table field, is this the Target table (the type of record we will be creating from the workflow, or the table the workflow can edit [add, delte, update]). Is this the Current record? Or is this simply the table that sets off the workflow when a record is inserted into it?
3. What is the current record in a Workflow that is set off by a Script?
Thank you all in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-18-2017 03:18 PM
The table in the properties of a workflow is the table on which that workflow will run. So, if you create a workflow for sc_req_item, put that workflow in the "workflow" field on the catalog item, any sc_req_item created from that catalog item will use that workflow. Alternately, you can have a situation where a workflow runs on a table always, assuming the record meets the "conditions" you set in the workflow. We have a workflow running on sysapproval_approver that sends reminder emails to the approver every other day until the approval task is approved or rejected. In this case, our table for the workflow is sysapproval_approver and the condition is that the approval for.task type is Requested item. When scripting in the workflow, "current" refers to the specific record that the workflow was triggered for.