function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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.