c# - Get Connected entities -


i have system whereby entity connected b connection c. different types of connection have different properties.

in c# using microsoft dynamics crm 2011 sdk, how connections (c) related record has been updated , update record b @ other end of connection, using info connection? there multiple connections each record a.

thank you

first know must create plug-in on update record whenever record gets updated plug-in triggered. in plugin need make join using linq or other retrieve method fetch connection relevant record looking guid in connection entity should "record1id". when connection can use guid record b should "record2id". when record b update based on want form fetched connection , update it.

the following code gives connetions related recorda if use linq , binding

var connections = (from conn in context.createquery<connection>()                                                       (conn.record1id.id == recordaid                                                             select conn).tolist(); 

you can make other filters connection if there any! hope helps


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -