views:

238

answers:

1

Hi,

I'm using .NET and the CRM SDK to manage salesorders in CRM. However, I want to be able to add contacts to salesorder. This should be possible using records in the intersect table contactorders. What is the procedure for adding contactorders? I tried creating a Dynamic Entity of the contactorder type, but I get the error that Create doesn't support contactorders.

Does anyone have any idea?

Thanks!

+1  A: 

You'll need to use the SetRelated message.

From the SDK:

SetRelated Use this message to create a relationship between a sales order (order) and a contact. The information that is needed to relate the two instances is specified in the TargetRelatedSalesOrderToContact class. Order (salesorder) Entity Capabilities

benjynito
thanks, this worked!!
Lex