Skip to main content
Feb 5, 2016 1:53 PM UTC
Solved

CLI command to get the document detail in GUI (document->view)

Good Morning,

Again my apologies if it is a dumb question. I want to display all the detail via cli command just like I can do it in GUI document->view. I want to process that in a different program.

Thank you for your help.

Feb 13, 2016 1:01 PM UTC

Hello Muhammad,

what about "im viewsegment --xmlapi --fields=text,category 162", whereas the 162 is the document id?

You are getting then xml data which you can process

Does this help?

Volker

4 replies

Feb 8, 2016 11:48 PM UTC

Hello Muhammad Khan‌,

Unfortunately, what you have requested isn't currently possible.

Which program are you trying to process with?

Regards,
Kael

mkhan-2Author
Feb 9, 2016 4:54 PM UTC

I achieve this by using im viewissue --showAttachments --showAttachmentDetails command. Just not sure how to access the child nodes.

Feb 13, 2016 1:01 PM UTC

Hello Muhammad,

what about "im viewsegment --xmlapi --fields=text,category 162", whereas the 162 is the document id?

You are getting then xml data which you can process

Does this help?

Volker

Feb 15, 2016 5:48 PM UTC

Hello Muhammad Khan‌, Volker Eckardt,

That will work up to Integrity 10.6, but be aware that the command was never published, and so any scripts relying on that won't work as of 10.7, when that option was removed from the product.  You could get the same effect by using the mksAPIViewer or java -jar <clientInstallDir>/lib/mksapi.jar --iplocal --xml <CLICommand>, as per CS166082.

Regards,
Kael