You need to sign in to do that
Don't have an account?

how to add salesforce attachment file in tfs using web service
Here my Webservice code :
Authentication authentication = new Authentication();
authentication.Username = "aaa";
authentication.Password = "bbb";
authentication.Domain = "http://my-pc:myport/tfs";
authentication.ServerURL = "http://localhost:myport/tfs";
WorkItem newBug = new WorkItem(DevelopmentProject(authentication).WorkItemTypes["Bug"]);
newBug.Fields["Title"].Value = "Attchments";
newBug.Attachments.Add(new Microsoft.TeamFoundation.WorkItemTracking.Client.Attachment("C:\\Users\\estsys\\Desktop\\test\\test.txt", "TextFile"", "TextFile"));
newBug.Save();
above code is working ..... but, how can i use salesforce attachment path in the above code.......
Authentication authentication = new Authentication();
authentication.Username = "aaa";
authentication.Password = "bbb";
authentication.Domain = "http://my-pc:myport/tfs";
authentication.ServerURL = "http://localhost:myport/tfs";
WorkItem newBug = new WorkItem(DevelopmentProject(authentication).WorkItemTypes["Bug"]);
newBug.Fields["Title"].Value = "Attchments";
newBug.Attachments.Add(new Microsoft.TeamFoundation.WorkItemTracking.Client.Attachment("C:\\Users\\estsys\\Desktop\\test\\test.txt", "TextFile"", "TextFile"));
newBug.Save();
above code is working ..... but, how can i use salesforce attachment path in the above code.......
You cannot send attachment using outbound message. You write an external service and create a trigger which will send the data in bytes format to the service. Check the below link.
http://blog.giovannimodica.com/post/call-a-net-wcf-service-from-salesforce