Retrieve share links using command line client

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
tib
Posts: 9
Joined: Wed Jun 18, 2014 4:28 am

Retrieve share links using command line client

Post by tib » Wed Jun 18, 2014 4:32 am

How do I retrieve the "Share Links" of a file using the command line client?

I tried the HISTORY command with option "-includeactions share", but it does not return anything.
The LISTOBJECTPROPERTIES command does not seem to return any share information either.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Retrieve share links using command line client

Post by Beth » Wed Jun 18, 2014 8:30 am

I just tested the same History command with Vault 6.1.0 and Vault 7.2 and was able to see share in history.

Was your result True, but just blank?

My command looks like

vault HISTORY -host xxxxxxxxxx -user xxxxxxxx -password xxxxxxxxxx -repository "Initial Repository" $ -includeactions share

(include actions actually has the hyphen attached to it....wrap text separated them)

Can you check with a Vault GUI client someone to ensure you actually have shares?
Beth Kieler
SourceGear Technical Support

tib
Posts: 9
Joined: Wed Jun 18, 2014 4:28 am

Re: Retrieve share links using command line client

Post by tib » Mon Jun 23, 2014 6:36 am

If I do the HISTORY command on a file, the share actions does not show up.
If I do the HISTORY command on the folder, the share actions does show up.
But it still only reports the location from where the file was shared.

It does not provide the information in the "Share Links" tab in the GUI Vault client.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Retrieve share links using command line client

Post by Beth » Mon Jun 23, 2014 4:05 pm

If the information can't be seen in the Vault GUI client, then either the item is no longer shared or some other issue is going on. We should take a closer look.

Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?
Beth Kieler
SourceGear Technical Support

tib
Posts: 9
Joined: Wed Jun 18, 2014 4:28 am

Re: Retrieve share links using command line client

Post by tib » Tue Jun 24, 2014 4:00 am

Sorry, I was unclear.
The share links can be seen in the GUI client.

What I can't do is find a way to get the same information using the command line client.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Retrieve share links using command line client

Post by Beth » Tue Jun 24, 2014 8:31 am

What version of Vault are you using?

I ran the command against our Vault demo server and here are the results I received:

C:\Program Files (x86)\SourceGear\Vault Client>vault HISTORY -host vaultdemo.sou
rcegear.com -user guest2 -password guest2 -repository "Initial Repository" $ -in
cludeactions share
<vault>
<history>
<item txid="6838" date="11/27/2013 1:31:12 PM" name="$/0.8118" type="190" ty
peName="SharedTo" version="3" objverid="112205" user="guest3" actionString="Shar
ed $/addfiles/Created3_27.txt as $/0.8118/Created3_27.txt" />
<item txid="6837" date="11/27/2013 1:30:38 PM" name="$/0.8118" type="190" ty
peName="SharedTo" version="2" objverid="112203" user="guest3" actionString="Shar
ed $/addfiles/Created3_30.txt as $/0.8118/Created3_30.txt" />
</history>
<bugsreferenced />
<result>
<success>True</success>
</result>
</vault>

Do you not get results that look like this? If you do get results like this, then what additional information are you looking for?
Beth Kieler
SourceGear Technical Support

Post Reply