Skip to main content
1-Visitor
January 26, 2021
Question

Programmatically getting a list of documents that were branched from a single document in Integrity

  • January 26, 2021
  • 1 reply
  • 1348 views

I am using c# but I would like to put in a segment ID and get a ID listing of all the documents that were branched from that item. Is that

1 reply

17-Peridot
January 28, 2021

Your best bet is to use im viewissue with the --showbranches flag

eg: im viewissue --showBranches <document id>

 

The relevant output should look something like:

Field:
Name = MKSIssueBranches
Data Type = mksItemList
ItemList:
Item:
Id = 715
Context = NULL
Model Type = im.Issue.Branch
Field:
Name = ChildID
Data Type = int
Value = 715
Field:
Name = BranchTime
Data Type = time_t
Value = Fri Aug 24 09:10:05 2012