Answered by:
Dynamics CRM online plug-in security exception

Question
-
Hi,
I am new to Dynamics CRM. I created a plug-in used to forward the lead from master organization to child organization.
So I need to connect the organization service of child organization, bu it cause a security exception in online sandbox mode.
But it works fine in on-premises version without sandbox mode.
After some research I think it could caused by the sandbox is partial trust and the DefaultCredentials I used to create connection need full trust.
Is my understanding correct? And is there any way to implement this?
Thanks
Saturday, June 1, 2013 6:07 AM
Answers
-
Hi,
The code of Plug-in in Isolation mode must use only the HTTP and HTTPS protocols to access others web services.
Plug-in Isolation, Trusts, and Statistics
Regards,
Philippe
Blog : Dynamics CRM pour les francophones/for French speakers
- Marked as answer by EricLiu_CN Sunday, June 2, 2013 9:25 AM
Saturday, June 1, 2013 10:11 AM
All replies
-
Hi,
The code of Plug-in in Isolation mode must use only the HTTP and HTTPS protocols to access others web services.
Plug-in Isolation, Trusts, and Statistics
Regards,
Philippe
Blog : Dynamics CRM pour les francophones/for French speakers
- Marked as answer by EricLiu_CN Sunday, June 2, 2013 9:25 AM
Saturday, June 1, 2013 10:11 AM -
Hi,
Philippe is right. You need to use HTTP / HTTPS for this access. Refer to following article for an example of how to achieve this.
http://technet.microsoft.com/en-us/library/gg509030.aspx
Download SDK for further reference.
Hope this helps.
-----------------------------------------------------------------------
Minal Dahiya
If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"- Proposed as answer by Minal Dahiya Saturday, June 1, 2013 10:29 AM
Saturday, June 1, 2013 10:29 AM -
Hello,
As said by other user there are some limitation while you are working with MS CRM online plugin, so you have some options like you could develop a middle interaction service which you can host on cloud or in your interanet environment (you need to deploy this on standard port like 443 or 80 and then can open these ports to extranet) or if you want to synch your organization did you try r Microsoft Dynamics CRM 2011 Instance adapte
HTH
My Website | My Blog | Follow me on Twitter | My Facebook Page | Microsoft Dynamics CRM 2011 Application Design
Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.- Proposed as answer by HIMBAPModerator Sunday, June 2, 2013 6:04 AM
Sunday, June 2, 2013 6:04 AMModerator -
Hi Philippe,
Thank you so much for your answer. It is very helpful.
Sunday, June 2, 2013 9:26 AM -
Hi Minal,
Thanks so much. And I really appreciate you providing a sample link.
Sunday, June 2, 2013 9:27 AM -
Hi Mahender,
Thanks for your answers. And you provide a very helpful solution. I may try on this.
Also using Microsoft Dynamics CRM 2011 Instance adapte is another possible solution to me. But it seems need a SQL server as the required software requirement, I am working on building a suitable environment for that.
Sunday, June 2, 2013 9:29 AM