dynamics crm 2011 - Campaignresponse entity create in plugin -


i wrote plugin fire on phonecall step setstatedynamic. register post image in step plugin.i phonecall entity postimage. , when set phonecallid origanitingactivityid on campaign response

(  campaignresponse.originatingactivityid = new entityreference(); campaignresponse.originatingactivityid.logicalname = phonecall.entitylogicalname; campaignresponse.originatingactivityid.id = phonecall.activityid.value; ) 

plugin throws timeout.(i set serviceproxy,timeout property 30 minutes,its still throw timeout.) when dont set originatingactivityid,campaingresponse created.

any suggestion problem.

try this

campaignresponse.originatingactivityid = new entityreference(phonecall.entitylogicalname, phonecall.id); 

this works me.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -