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.
Retrieve share links using command line client
Moderator: SourceGear
Re: Retrieve share links using command line client
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?
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
SourceGear Technical Support
Re: Retrieve share links using command line client
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.
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.
Re: Retrieve share links using command line client
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?
Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Retrieve share links using command line client
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.
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.
Re: Retrieve share links using command line client
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?
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
SourceGear Technical Support