Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

How to create connection between two entities in crm 2011 through workflow

$
0
0

Hi All,

I want to create connection between two entities. when I try at my end I got an error message

such as

The record type 10208 is not defined for use with the connection role. Please tell me what can i do.

 Entity objconnectionent = new Entity("connection");
                    objconnectionent.Attributes["record1id"] = new EntityReference("contact", new Guid("9CD5F685-52C4-E211-89DA-402CF4867798"));
                    objconnectionent.Attributes["record1roleid"] = new EntityReference("connectionrole", new Guid("351F34F0-C764-E211-8D79-984BE17C9A93"));
                    objconnectionent.Attributes["record2id"] = new EntityReference("abc",new Guid(abcid.ToString()));
                    objconnectionent.Attributes["record2roleid"] = new EntityReference("connectionrole", new Guid("351F34F0-C764-E211-8D79-984BE17C9A93"));
                    var connectionid=service.Create(objconnectionent);
                }

Please reply asap if anyone have idea about this error.


Ravideep Bansal



Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>