Write to Workflow Error Log from Connect Designer using Javascript

Howdy Hi,

Is there a way to write to the Workflow Error Log from Connect Designer using Javascript?

We have an external script that scrapes the Workflow Error Log (located in C:\ProgramData\Objectif Lune\PlanetPress Workflow 8\PlanetPress Watch\Log) and it would be great if we could add a line to the error log (using Javascript) when an image can’t be found in our Connect Designer template.

I realize I can just access and write to the log file directly using Javascript, but it would be great if I could have it run through the Workflow error process so that the error line that I add will be in the same WPROC/thread/record in the error log and hopefully not collide with whatever in Workflow is also writing to the log file.

Thanks!

I should add that our Connect Designer template is used in a Workflow Print Content task.

Perhaps errors in the template will actually be sent to the Workflow log instead of the Designer log?

I’ll test this and report back.

From the Designer, you could do an AJAX call to a Workflow process that starts with a NodeJS Server Input task, passing the error message in the payload. Your Workflow process would use the Logger task to write that error message to the Workflow log.

Ok, thank you very much!