The CreatorCon Call for Content is officially open! Get started here.

debugging a workflow

patricklatella
Mega Sage

Hi all,

I've got a workflow that I'm building, and initially I'm just trying to see if parts are firing by using a gs.info()...so the first question is can I do this inside a "Run Script" command within a workflow?

Here's the set up:

find_real_file.png

This workflow is running on the sc_req_item table, the IF statement is picking up whether it's my desired catalog item.   Then for now I just want to see if the Run Script there is working with this script:

find_real_file.png

so if I do a test order of this item, should I see   "hello" message in the system log?

10 REPLIES 10

Could you just check if the workflow got associated to the record.


patricklatella
Mega Sage

ok right thanks, looking in the Workflow Contexts it does not appear as though the workflow is being triggered because it's not showing up there.


Correct. A better approach is to scroll to the record that is created scroll to the bottom there would be Related links section & you will get Show workflow action if you have workflow associated to that record.


patricklatella
Mega Sage

great, thanks Jaspal...I used your suggestions to determine that the workflow was not being triggered.   I then saw that I had the incorrect workflow identified on the catalog item itself...that was it!


Did you get the correct once associated. If so look for logs &   confirm if that shows.