Generating Log files

Hi All,

I want to generate log files which should hold some metadata + Document set number and page count

How to achieve that as apparently document set and page count are not counted in metadata properly?

Thanks

You can access these values through the rest API.

See above for an example of how to retrieve the page count and document count of a job that was just run.

Thank you for your reply,

Well this didn’t work for me. it keeps returning an error on line 9: msxml3.dll error.

I only need the total page count in a document

I’ve just tested it again on 1.7.1 and 1.8. It’s working fine.

It does assume that your Connect server and Workflow server are on the same machine. It also needs to be run in Workflow directly after a Create Print Content plugin in order to have access to the values you’re seeking.

Were there any other errors when you ran it? Did the rest of your Connect plugins work properly?

As it’s written, it logs the values directly into the workflow logs, but if you want to get the value into a log of your own, you’d just need to assign it to a workflow variable via Watch.SetVariable.