+ Start a Discussion

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"));

above code is working ..... but, how can i use salesforce attachment path in the above code.......
Hi Sarathy,

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.