public void TestCreateFeedAttachment() // ERROR - need a ContentVersion based on a ContentDocument which is not createable :((((( { Salesforce.SalesforceProxy.FeedAttachment att = new Salesforce.SalesforceProxy.FeedAttachment() { Type = "Content", RecordId = "00P0b00000tZuVoEAK" // existing Attachment created by API }; Salesforce.SalesforceProxy.SaveResult result = sf.Create(att); }
public void TestQueryFeedAttachments() { Salesforce.SalesforceProxy.sObject[] objects = sf.Query("SELECT Title, Value, Id, Type, RecordId, FeedEntityId FROM FeedAttachment"); for (int i = 0; i < objects.Length; i++) { Salesforce.SalesforceProxy.FeedAttachment att = (Salesforce.SalesforceProxy.FeedAttachment)objects[i]; Console.WriteLine("{0}\t{1}\nValue:\t{2}\nId:\t{3}\nType:\t{4}\nRecordId:{5}\nFeedEntityId:{6}\n", i + 1, att.Title, att.Value, att.Id, att.Type, att.RecordId, att.FeedEntityId); } }