Skip to main content
1-Visitor
February 5, 2016
Solved

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

  • February 5, 2016
  • 2 replies
  • 2836 views

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.

Best answer by VolkerEckardt

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

2 replies

16-Pearl
February 8, 2016

Hello Muhammad Khan‌,

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

Which program are you trying to process with?

Regards,
Kael

mkhan-21-VisitorAuthor
1-Visitor
February 9, 2016

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

17-Peridot
February 13, 2016

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

16-Pearl
February 15, 2016

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