Community
Vault Customization
Share your knowledge, ask questions, and explore popular Vault API, Data Standard, and VBA topics related to programming, creating add-ins, or working with the Vault API.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vault 2015 API Get File from IWebServiceExtension

2 REPLIES 2
Reply
Message 1 of 3
raghulan
327 Views, 2 Replies

Vault 2015 API Get File from IWebServiceExtension

I am using the restricted operations example source to build another.

all I want is

 

when user selects a file and change the state a event is fired and in that I want to get the details of the selected file.

 

private void RestrictOperation(WebServiceCommandEventArgs eventArgs, string eventName)
        {
            RestrictSettings settings = RestrictSettings.Load();

            //Here I want to get the selected file


        }

 

Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com
2 REPLIES 2
Message 2 of 3
smithmat
in reply to: raghulan

You'll notice that RestrictionOperation takes a WebServiceCommandEventArgs (a base class).  But you'll notice that the methods that are registered as eventHandlers take more specific (derived) WebServiceCommandEventArgs classes.  For example, look at the Snippet

UpdateFileLifecycleStateEvents_GetRestrictions.  It takes the UpdateFileLifeCycleStateCommandEventArgs which has an array of FileMasterIds.  Each WebServiceCommandEvent has event args that have information that is specific to that api.

 

Hope that helps,

- Matt

 

Message 3 of 3
raghulan
in reply to: smithmat

Thanks for the information.

 

Is there any way to get the logged in user details or file details. Any code snippet would be helpfull.

 

Regards,

Raghulan Gowthaman Cert IV TAA, B.E,.
Senior Technical Consultant | Developer - R&D
A2K Technologies Sydney
Web : www.a2ktechnologies.com.au
www.civil3dforum.com | www.e4forums.com
www.zcodia.com.au
www.raghulangowthaman.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report