Interesting
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.
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts sent to your email.

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.
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 210.211.109.118:80 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)
LikeLike