Task and Phone Activity Created through the Social Pane CRM 2013/15/16


Ranjeet Patel

When I tried to run a post create plugin on any activity (i.e. phonecall,  task, email, etc) that time i was unable to get the regardingobjectid in the target entity.

then I looked into the Audit history of this entity and found out that at time of creation we don’t get the “regardingobjectid”, internally some workflow of something runs and it creates one update audit history, and i found out that update audit history really update the regarding object id.

then i registered  my post create plugin to post update plugin and this solved my problem.

View original post

Author: Nishant Rana

I love working in and sharing everything about Microsoft.NET technology !

One thought on “Task and Phone Activity Created through the Social Pane CRM 2013/15/16”

  1. Hi Nishanth,
    I am stuck with SMS gateway API integration, your expertise may help me out here.
    I created a custom WF which calls the SMS gateway API using httpwebrequest code. But problem is it throws below error. WF is registered in Non Sandbox mode only. in server windows firewall is off, Console application with same code running without errors. I am stuck what is causing error.


    WorkflowActivityPlugin.SMS_Service.sendClient.WorkflowActivityPlugin.SMS_Service.send.send(sendRequest request) at WorkflowActivityPlugin.SMS_Service.sendClient.send(String USERNAME, String PASSWORD, String BRANDNAME, String MESSAGE, String TYPE, String PHONE, String IDREQ) at WorkflowActivityPlugin.VNETSMS.SendSMS(String destinationphone, String message, String brandname, String type, String IRDEQ) at WorkflowActivityPlugin.SMSIntegrationWorkFlow.Execute(CodeActivityContext executionContext) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation) Inner Exception: System.Net.WebException: Unable to connect to the remote server at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) at System.Net.HttpWebRequest.GetRequestStream() at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.GetOutputStream() Inner Exception: System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)


Please share your thoughts

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.