Im using C# to try and add a known contact to a known prospect list. I have the ID for both of the instances.
Im trying to use set_relationsip to do it but im getting no where, i have been abe to add a contact to a opportunity and account but not to a prospect list or product. Every example i find is in php, although i can read it, following it step by step and doing it is C# just never works, always get a failed flag.
string Contact = "9b312856-0d04-edec-81ca-51de504f8b41"; string Target = "8c33a9dd-70c1-1a38-09e4-527aeef43115";
string single = Target;
string[] arraysingle = {Contact};
var a = new name_value { name = "", value = "" };
name_value[] temp = {a};
var rel = sugar.set_relationship( loginToken.id, "prospects", single, "contacts", arraysingle, temp, 0 );