Context.CallerOrigin in MS CRM 2011/2013

Hi All,
What is the replacement of the Context.CallerOrigin in MS CRM 2011/2013.
Thanks
Srikanth 

Hello,
There is no replacement. But for plugins that run not in isolation property is still available -
http://a33ik.blogspot.com/2012/06/callerorigin-in-plugins.html
Dynamics CRM MVP
My blog

Similar Messages

  • Plugin reference library to ms crm 2011/2013/2015.

    Plugin reference library to ms crm 2011/2013/2015.
    Eg:like for jscript http://garethtuckercrm.com/2011/03/16/jscript-reference-for-microsoft-dynamics-crm-2011/
    Please help me

    Hi,
           These functions are not present in any library. You create a utility file to store such commonly used function and make sure it is included as first script file on the form. OR you can use the library functions from codeplex
    site like following:
    https://gallery.technet.microsoft.com/Dynamics-CRM-2011-86e1c5e5
    Hope this helps.
    Minal Dahiya
    blog : http://minaldahiya.blogspot.com.au/
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

  • How to access 3rd party website into MS CRM online 2011/2013

    Hi,
    I want to access a form which is in my .net application/website  into the ms crm 2011/2013 on-line versions using web-services.
    Actually from .net form using web-service I have added contacts into CRM but now I want to do it in reverse way, like if I have stocks in my website I want to access them in my CRM 2011/2013.
    jo

    Hello,
    Recheck following articles:
    https://msdn.microsoft.com/en-us/library/gg509030.aspx
    https://mscrmmindfire.wordpress.com/2013/06/14/calling-external-web-service-from-a-crm-2011-plug-in/
    Dynamics CRM MVP/ Technical Evangelist at
    SlickData LLC
    My blog

  • Issues connecting BizTalk 2013 WCF to Microsoft CRM 2011 using ADFS

    I have a Microsoft CRM 2011 instance I'm trying to connect to from BizTalk 2013 using WCF. The CRM instance is using ADFS based security
    and basic "domain/user" "password" security. The OrganizationService has the following policy in the WSDL.
    <wsp:Policy wsu:Id="CustomBinding_IOrganizationService_policy">
    <wsp:ExactlyOne>
    <wsp:All>
    <ms-xrm:AuthenticationPolicy xmlns:ms-xrm="http://schemas.microsoft.com/xrm/2011/Contracts/Services">
    <ms-xrm:Authentication>Federation</ms-xrm:Authentication>
    <ms-xrm:SecureTokenService>
    <ms-xrm:Identifier>http://example.com/adfs/services/trust</ms-xrm:Identifier>
    </ms-xrm:SecureTokenService>
    </ms-xrm:AuthenticationPolicy>
    <sp:TransportBinding xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <wsp:Policy>
    <sp:TransportToken>
    <wsp:Policy>
    <sp:HttpsToken/>
    </wsp:Policy>
    </sp:TransportToken>
    <sp:AlgorithmSuite>
    <wsp:Policy>
    <sp:Basic256/>
    </wsp:Policy>
    </sp:AlgorithmSuite>
    <sp:Layout>
    <wsp:Policy>
    <sp:Strict/>
    </wsp:Policy>
    </sp:Layout>
    <sp:IncludeTimestamp/>
    </wsp:Policy>
    </sp:TransportBinding>
    <sp:EndorsingSupportingTokens xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <wsp:Policy>
    <sp:IssuedToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
    <Issuer xmlns="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702">
    <Address xmlns="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/anonymous</Address>
    <Metadata xmlns="http://www.w3.org/2005/08/addressing">
    <Metadata xmlns="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <wsx:MetadataSection xmlns="">
    <wsx:MetadataReference>
    <Address xmlns="http://www.w3.org/2005/08/addressing">
    https://example.com/adfs/services/trust/mex
    </Address>
    </wsx:MetadataReference>
    </wsx:MetadataSection>
    </Metadata>
    </Metadata>
    </Issuer>
    <sp:RequestSecurityTokenTemplate>
    <trust:KeyType xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
    http://docs.oasis-open.org/ws-sx/ws-trust/200512/SymmetricKey
    </trust:KeyType>
    <trust:KeySize xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">256</trust:KeySize>
    <trust:Claims xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512" Dialect="http://schemas.xmlsoap.org/ws/2005/05/identity">
    <wsid:ClaimType xmlns:wsid="http://schemas.xmlsoap.org/ws/2005/05/identity" Uri="http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn"/>
    </trust:Claims>
    <trust:KeyWrapAlgorithm xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p</trust:KeyWrapAlgorithm>
    <trust:EncryptWith xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/04/xmlenc#aes256-cbc</trust:EncryptWith>
    <trust:SignWith xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2000/09/xmldsig#hmac-sha1</trust:SignWith>
    <trust:CanonicalizationAlgorithm xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/10/xml-exc-c14n#</trust:CanonicalizationAlgorithm>
    <trust:EncryptionAlgorithm xmlns:trust="http://docs.oasis-open.org/ws-sx/ws-trust/200512">http://www.w3.org/2001/04/xmlenc#aes256-cbc</trust:EncryptionAlgorithm>
    </sp:RequestSecurityTokenTemplate>
    <wsp:Policy>
    <sp:RequireInternalReference/>
    </wsp:Policy>
    </sp:IssuedToken>
    </wsp:Policy>
    </sp:EndorsingSupportingTokens>
    </wsp:All>
    </wsp:ExactlyOne>
    </wsp:Policy>
    I've set up the following client configuration:
    <binding name="ws2007FederationHttpBinding">
    <security mode="TransportWithMessageCredential">
    <message>
    <issuer address="https://adfs20.example.com/adfs/services/trust/2005/usernamemixed"
    binding="wsHttpBinding"
    bindingConfiguration="stsBinding" />
    <issuerMetadata address="https://adfs20.example.com/adfs/services/trust/mex" />
    </message>
    </security>
    </binding
    And referencing this for adfs specific communication
    <wsHttpBinding>
    <clear />
    <binding name="stsBinding">
    <security mode="TransportWithMessageCredential">
    <transport clientCredentialType="None"/>
    <message clientCredentialType="UserName" establishSecurityContext="false"/>
    </security>
    </binding>
    </wsHttpBinding>
    As I try using it I get the receive the following error message
    A message sent to adapter "WCF-Custom" on send port "SendPort6" with URI "https://crm-test.example.com/XRMServices/2011/Organization.svc" is suspended.
    Error details: System.ServiceModel.FaultException: MSIS3127: The specified request failed.
    Server stack trace:
    at System.ServiceModel.Security.IssuanceTokenProviderBase`1.DoNegotiation(TimeSpan timeout)
    at System.ServiceModel.Security.IssuanceTokenProviderBase`1.GetTokenCore(TimeSpan timeout)
    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
    at System.ServiceModel.Security.Tokens.IssuedSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
    at System.ServiceModel.Security.SecurityProtocol.TryGetSupportingTokens(SecurityProtocolFactory factory, EndpointAddress target, Uri via, Message message, TimeSpan timeout, Boolean isBlockingCall, IList`1& supportingTokens)
    at System.ServiceModel.Security.TransportSecurityProtocol.SecureOutgoingMessageAtInitiator(Message& message, String actor, TimeSpan timeout)
    at System.ServiceModel.Security.TransportSecurityProtocol.SecureOutgoingMessage(Message& message, TimeSpan timeout)
    at System.ServiceModel.Security.SecurityProtocol.SecureOutgoingMessage(Message& message, TimeSpan timeout, SecurityProtocolCorrelationState correlationState)
    at System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.DoOperation(SecuritySessionOperation operation, EndpointAddress target, Uri via, SecurityToken currentToken, TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionSecurityTokenProvider.GetTokenCore(TimeSpan timeout)
    at System.IdentityModel.Selectors.SecurityTokenProvider.GetToken(TimeSpan timeout)
    at System.ServiceModel.Security.SecuritySessionClientSettings`1.ClientSecuritySessionChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.ServiceChannel.OnOpen(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
    at System.ServiceModel.Channels.CommunicationObject.Open()
    Exception rethrown at [0]:
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at System.ServiceModel.ICommunicationObject.Open()
    at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.GetChannel[TChannel](IBaseMessage bizTalkMessage, ChannelFactory`1& cachedFactory)
    at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.SendMessage(IBaseMessage bizTalkMessage)
    MessageId: {0A8D8BB1-0838-43AF-B3A1-D63D432C22AA}
    InstanceID: {B57B4979-2187-4CF7-8115-4D65B3952982}
    What am I missing ..?
    http://www.richardhallgren.com

    Hi Angie and Richard
    Currently I am also having the similar issue and I tried the settings you mentioned. But I get his error 
    The adapter failed to transmit message going to send port "WcfSendPort_OrganizationService_CustomBinding_IOrganizationService" with URL "https://examplecrm.com/XRMServices/2011/Organization.svc".
    It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ServiceModel.FaultException: The message with Action 'http://docs.oasis-open.org/ws-sx/ws-trust/200512/RST/Issue' cannot be processed at the receiver, due
    to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.  Check that sender and receiver
    have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).
    By any chance did you go through this error or do you have any suggestions?I am trying to connect from WCF-Custom adapter on BizTalk 2010 to CRM 2013 using ADFS. 
    Thanks 
    Narri

  • Import Fail crm 2011 to crm 2013 Legacy component issue

    Hi All
    We are getting issues during organization import from crm 2011 to crm 2013 , the error is 
    "We have detected the presence of legacy component(s) during upgrade, these components are not supported in Dynamics CRM 2013. Please refer to upgrade log file C:\Users\Administrator\AppData\Roaming\Microsoft\MSCRM\Logs\LegacyFeatureCheck.xml
    for more information."
    when we check log file it shows the error "ISV folder under CRM Website contains one or more files"
    Even we removed everything from ISV folder , Iframe urls from app , solution which is using ISV urls ,plugins and custom workflows but still the error is same
    Please help to resolve this issue .
    Thank you
    Sharique

    Hi,
    Please refer below blog having details about "Removal of the 2007 Endpoint and Legacy Features"
    http://blog.simonjackson.info/2013/07/whats-changing-in-crm-2013-from-sdk.html
    The following legacy Microsoft Dynamics CRM 4.0 features will be removed or will no longer be supported in the next major product release:
    ISV folder support for custom web applications
    Microsoft Dynamics CRM 4.0 plug-ins
    Microsoft Dynamics CRM 4.0 client-side scripting
    Microsoft Dynamics CRM 4.0 custom workflow activities
    Also you can download a tool that can detect legacy feature on your server
    http://go.microsoft.com/fwlink/p/?LinkID=309565
    Entire documentation is available at below article.
    http://msdn.microsoft.com/en-us/library/dn281891.aspx
    Hope this helps.
    Ajay Chawla

  • CRM 2011& Office 2013 Excel Export

    Hi Forum,
    we are currently using a crm 2011 server (ru17) and have some clients with Windows 8.1 and Office 2013 with outlook addin (RU 17). For these clients we get in to trouble by exporting contacts or accounts as dynamic pivot spreadsheet.
    If the download window pop up, you can not directly open the file (instead with office 2010 it is possible). If you chose save (it is a xml file), you have to right click that file and chose excel. After Excel started you can't see the pivot.
    We tried to solve the issue with the following hotfix(without any luck): http://support.microsoft.com/kb/2883063/EN-US
    Maybe some has another idea how we can solve the problem ?

    You can use a custom timer job in SharePoint 2013 to be scheduled to run. This job could interact with your CRM system to import the entities to a folder or List in SharePoint. Andrew has a link here:
    http://www.andrewconnell.com/Creating-Custom-SharePoint-Timer-Jobs
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • Export Records from CRM 2011 to Sharepoint 2013

    We currently have CRM 2011 and are about to install Sharepoint 2013.
    We are wondering is it possible to export records from Entities in CRM 2011 to a folder in Sharepoint 2013?
    If this is possible can it be automated to run on a schedule?
    Any help on this is greatly appreciated.
    Thanks.

    You can use a custom timer job in SharePoint 2013 to be scheduled to run. This job could interact with your CRM system to import the entities to a folder or List in SharePoint. Andrew has a link here:
    http://www.andrewconnell.com/Creating-Custom-SharePoint-Timer-Jobs
    Blog | SharePoint Field Notes Dev Tools |
    SPFastDeploy | SPRemoteAPIExplorer

  • CRM ONLINE 2013: On Approval Of Quotation, Run Report, Generate PDF and Send an Email With PDF as attachment

    Hi,
    I am using CRM ONLINE 2013.
    How to automate below process?
    1. On Approval Of Quotation, Run Report.
    2. Generate PDF.
    3. Send an Email With PDF as attachment.
    As i have gone through many forums for this topic, but creating a plugin code for generating Report PDF is not possible in CRM ONLINE.
    So, What is the alternate way to do this..?
    Thanks.

    This is my entire code mentioned below:-
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title></title>
        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script>
        <script type="text/javascript">
            if (typeof (SDK) == "undefined")
            { SDK = { __namespace: true }; }
            SDK.JScriptRESTDataOperations = {
                _context: function () {
                    if (typeof GetGlobalContext != "undefined")
                    { return GetGlobalContext(); }
                    else {
                        if (typeof Xrm != "undefined") {
                            return Xrm.Page.context;
                        else { return new Error("Context is not available."); }
                _getServerUrl: function () {
                    var serverUrl = this._context().getServerUrl()
                    if (serverUrl.match(/\/$/)) {
                        serverUrl = serverUrl.substring(0, serverUrl.length - 1);
                    return serverUrl;
                _ODataPath: function () {
                    return this._getServerUrl() + "/XRMServices/2011/OrganizationData.svc/";
                _errorHandler: function (req) {
                    return new Error("Error : " +
      req.status + ": " +
      req.statusText + ": " +
      JSON.parse(req.responseText).error.message.value);
                _dateReviver: function (key, value) {
                    var a;
                    if (typeof value === 'string') {
                        a = /Date\(([-+]?\d+)\)/.exec(value);
                        if (a) {
                            return new Date(parseInt(value.replace("/Date(", "").replace(")/", ""), 10));
                    return value;
                Create: function (object, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 201) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send(JSON.stringify(object));
                Retrieve: function (id, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("GET", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 200) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                Update: function (id, object, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.setRequestHeader("X-HTTP-Method", "MERGE");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 204 || this.status == 1223) {
                                successCallback();
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send(JSON.stringify(object));
                Delete: function (id, type, successCallback, errorCallback) {
                    var req = new XMLHttpRequest();
                    req.open("POST", this._ODataPath() + type + "Set(guid'" + id + "')", true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.setRequestHeader("X-HTTP-Method", "DELETE");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 204 || this.status == 1223) {
                                successCallback();
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                RetrieveMultiple: function (type, filter, successCallback, errorCallback) {
                    if (filter != null) {
                        filter = "?" + filter;
                    else { filter = ""; }
                    var req = new XMLHttpRequest();
                    req.open("GET", this._ODataPath() + type + "Set" + filter, true);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
                    req.onreadystatechange = function () {
                        if (this.readyState == 4 /* complete */) {
                            if (this.status == 200) {
                                successCallback(JSON.parse(this.responseText, SDK.JScriptRESTDataOperations._dateReviver).d.results);
                            else {
                                errorCallback(SDK.JScriptRESTDataOperations._errorHandler(this));
                    req.send();
                __namespace: true
        </script>
        <script type="text/javascript">
            //Create Email and link it with Order as Regarding field
            var Xrm;
            var email = new Object();
            var ownerID = "";
            var CustomerId = "";
            if (window.opener) { Xrm = window.opener.Xrm; }
            else if (window.parent) { Xrm = window.parent.Xrm; }
            //Get ownerid who send email of quotation to customer
            function GetOwnerID() {
                var owner = Xrm.Page.getAttribute("ownerid").getValue();
                ownerID = owner[0].id;
                var ownerName = owner[0].name;
                var entityType = owner[0].entityType;
                GetToEmailGUID();
            //Get customerid who receive email of quotation from owner
            function GetToEmailGUID() {
                var Customer = Xrm.Page.getAttribute('customerid').getValue();
                CustomerId = Customer[0].id;
                var CustomerName = Customer[0].name;
                var entityType = Customer[0].entityType;
                //if CustomerId is type of "Account" then get Primary Contact id of that account
                if (entityType == "account") {
                    var contact = Xrm.Page.getAttribute("customerid").getValue();
                    if (contact === null) return;
                    var serverUrl = Xrm.Page.context.getClientUrl();
                    var oDataSelect = serverUrl + "/XRMServices/2011/OrganizationData.svc/AccountSet(guid'" + contact[0].id + "')?$select=PrimaryContactId";
                    var req = new XMLHttpRequest();
                    req.open("GET", oDataSelect, false);
                    req.setRequestHeader("Accept", "application/json");
                    req.setRequestHeader("Content-Type", "application/json;charset=utf-8");
                    req.onreadystatechange = function () {
                        if (req.readyState === 4) {
                            if (req.status === 200) {
                                var retrieved = JSON.parse(req.responseText).d;
                                CustomerId = retrieved.PrimaryContactId.Id;
                            else {
                                alert(this.statusText);
                    req.send();
            function CreateEmail() {
                GetOwnerID();
                email.Subject = "Email with Report Attachment";
                //Set The current order as the Regarding object
                email.RegardingObjectId = {
                    Id: Xrm.Page.data.entity.getId(),    //Get the current entity Id , here OrderId
                    LogicalName: Xrm.Page.data.entity.getEntityName()//Get the current entity name, here it will be “salesOrder”
                //Create Email Activity
                SDK.JScriptRESTDataOperations.Create(email, "Email", EmailCallBack, function (error) { alert(error.message); });
            // Email Call Back function
            function EmailCallBack(result) {
                email = result; // Set the email to result to use it later in email attachment for retrieving activity Id
                var activityPartyFrom = new Object();
                // Set the From party of the ActivityParty to relate an entity with Email From field
                activityPartyFrom.PartyId = {
                    Id: CustomerId, //"79EBDD26-FDBE-E311-8986-D89D6765B238",  // id of entity you want to associate this activity with.        
                    LogicalName: "contact"
                // Set the "activity" of the ActivityParty
                activityPartyFrom.ActivityId = {
                    Id: result.ActivityId,
                    LogicalName: "email"
                // Now set the participation type that describes the role of the party on the activity).
                activityPartyFrom.ParticipationTypeMask = { Value: 2 }; // 2 means ToRecipients
                // Create the from ActivityParty for the email
                SDK.JScriptRESTDataOperations.Create(activityPartyFrom, "ActivityParty", ActivityPartyFromCallBack, function (error) { alert(error.message); });
                var activityPartyTo = new Object();
                // Set the From party of the ActivityParty to relate an entity with Email From field
                activityPartyTo.PartyId = {
                    Id: ownerID, //"79EBDD26-FDBE-E311-8986-D89D6765B238",  // id of entity you want to associate this activity with.        
                    LogicalName: "systemuser"
                // Set the "activity" of the ActivityParty  
                activityPartyTo.ActivityId = {
                    Id: result.ActivityId,
                    LogicalName: "email"
                // Now set the participation type that describes the role of the party on the activity).    
                activityPartyTo.ParticipationTypeMask = { Value: 1 }; // 1 means Sender
                // Create the from ActivityParty
                SDK.JScriptRESTDataOperations.Create(activityPartyTo, "ActivityParty", ActivityPartyToCallBack, function (error) { alert(error.message); });
            //ActivityParty From Callback
            function ActivityPartyFromCallBack(result) {
            //ActivityParty To Callback
            function ActivityPartyToCallBack(result) {
                GetReportId('ABM_Infotech_SalesQuote');
            //Create attachment for the created email
            function CreateEmailAttachment() {
                //get reporting session and use the params to convert a report in PDF
                var params = getReportingSession();
                //Email attachment parameters
                var activitymimeattachment = Object();
                activitymimeattachment.ObjectId = Object();
                activitymimeattachment.ObjectId.LogicalName = "email";
                activitymimeattachment.ObjectId.Id = email.ActivityId;
                activitymimeattachment.ObjectTypeCode = "email",
                    activitymimeattachment.Subject = "File Attachment";
                activitymimeattachment.Body = encodePdf(params);
                activitymimeattachment.FileName = "Report1.pdf";
                activitymimeattachment.MimeType = "application/pdf";
                //Attachment call
                SDK.JScriptRESTDataOperations.Create(activitymimeattachment, "ActivityMimeAttachment", ActivityMimeAttachmentCallBack, function (error) { alert(error.message); });
            //ActivityMimeAttachment CallBack function
            function ActivityMimeAttachmentCallBack(result) {
                var features = "location=no,menubar=no,status=no,toolbar=no,resizable=yes";
                var width = "800px";
                var height = "600px";
                window.open(Xrm.Page.context.getServerUrl() + "main.aspx?etc=" + 4202 + "&pagetype=entityrecord&id=" + email.ActivityId, "_blank", features);
                // To open window which works in outlook and IE both
                //openStdWin(Xrm.Page.context.getServerUrl() + "main.aspx?etc=" + 4202 + "&pagetype=entityrecord&id=" + email.ActivityId, "_blank", width,
    height, features);
            //This method will get the reportId based on a report name that will be used in            getReportingSession() function
            function GetReportId(reportName) {
                var oDataSetName = "ReportSet";
                var columns = "ReportId";
                var filter = "Name eq '" + reportName + "'";
                retrieveMultiple(oDataSetName, columns, filter, onSuccess);
            function retrieveMultiple(odataSetName, select, filter, successCallback) {
                var serverUrl = Xrm.Page.context.getServerUrl();
                var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
                var odataUri = serverUrl + ODATA_ENDPOINT + "/" + odataSetName + "?";
                if (select) {
                    odataUri += "$select=" + select + "&";
                if (filter) {
                    odataUri += "$filter=" + filter;
                $.ajax({
                    type: "GET",
                    contentType: "application/json; charset=utf-8",
                    datatype: "json",
                    url: odataUri,
                    beforeSend: function (XMLHttpRequest) {
                        XMLHttpRequest.setRequestHeader("Accept", "application/json");
                    success: function (data) {
                        if (successCallback) {
                            if (data && data.d && data.d.results) {
                                successCallback(data.d.results);
                            else if (data && data.d) {
                                successCallback(data.d);
                            else {
                                successCallback(data);
                    error: function (XmlHttpRequest, errorThrown) {
                        if (XmlHttpRequest && XmlHttpRequest.responseText) {
                            alert("Error while retrieval ; Error – " + XmlHttpRequest.responseText);
            function onSuccess(data) {
                reportId = data[0].ReportId.replace('{', ").replace('}', ");
                CreateEmailAttachment(); // Create Email Attachment
            //Gets the report contents
            function getReportingSession() {
                var pth = Xrm.Page.context.getServerUrl() + "/CRMReports/rsviewer/reportviewer.aspx";
                var retrieveEntityReq = new XMLHttpRequest();
                var Id = Xrm.Page.data.entity.getId();
                var quotationGUID = Id.replace('{', ""); //set this to selected quotation GUID
                quotationGUID = quotationGUID.replace('}', "");
                var reportName = "ABM_Infotech_SalesQuote"; //set this to the report you are trying to download
                var reportID = "751089AA-74B8-E211-B52F-D8D3855B253B"; //set this to the guid of the report you are trying to download
                var rptPathString = ""; //set this to the CRMF_Filtered parameter
                var strParameterXML = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'><entity name='quote'><all-attributes /><filter type='and'><condition
    attribute='quoteid' operator='eq' uitype='quote' value='" + quotationGUID + "' /> </filter></entity></fetch>";
                retrieveEntityReq.open("POST", pth, false);
                retrieveEntityReq.setRequestHeader("Accept", "*/*");
                retrieveEntityReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
                rptPathString = "id=%7B" + reportID + "%7D&uniquename=" + Xrm.Page.context.getOrgUniqueName() + "&iscustomreport=true&reportnameonsrs=&reportName="
    +
                                reportName + "&isScheduledReport=false&p:ABMFilteredQuote=" + strParameterXML;
                //remove the part starting from &p:salesorderid if your report has no parameters
                retrieveEntityReq.send(rptPathString);
                var x = retrieveEntityReq.responseText.indexOf("ReportSession=");
                var ret = new Array();
                ret[0] = retrieveEntityReq.responseText.substr(x + 14, retrieveEntityReq.responseText.indexOf("&", x) - x - 14); //the session id
                x = retrieveEntityReq.responseText.indexOf("ControlID=");
                ret[1] = retrieveEntityReq.responseText.substr(x + 10, retrieveEntityReq.responseText.indexOf("&", x) - x - 10); //the control id
                return ret;
            var bdy = new Array();
            var bdyLen = 0;
            function concat2Bdy(x) {
                bdy[bdyLen] = x;
                bdyLen++;
            function encodePdf(params) {
                bdy = new Array();
                bdyLen = 0;
                var retrieveEntityReq = new XMLHttpRequest();
                var pth = Xrm.Page.context.getServerUrl() + "/Reserved.ReportViewerWebControl.axd?ReportSession=" + params[0] +
                "&Culture=1033&CultureOverrides=True&UICulture=1033&UICultureOverrides=True&ReportStack=1&ControlID=" + params[1] +
                "&OpType=Export&FileName=Public&ContentDisposition=OnlyHtmlInline&Format=PDF";
                retrieveEntityReq.open("GET", pth, false);
                retrieveEntityReq.setRequestHeader("Accept", "*/*");
                retrieveEntityReq.send();
                BinaryToArray(retrieveEntityReq.responseBody);
                return encode64(bdy);
            var StringMaker = function () {
                this.parts = [];
                this.length = 0;
                this.append = function (s) {
                    this.parts.push(s);
                    this.length += s.length;
                this.prepend = function (s) {
                    this.parts.unshift(s);
                    this.length += s.length;
                this.toString = function () {
                    return this.parts.join('');
            var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
            function encode64(input) {
                var output = new StringMaker();
                var chr1, chr2, chr3;
                var enc1, enc2, enc3, enc4;
                var i = 0;
                while (i < input.length) {
                    chr1 = input[i++];
                    chr2 = input[i++];
                    chr3 = input[i++];
                    enc1 = chr1 >> 2;
                    enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
                    enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
                    enc4 = chr3 & 63;
                    if (isNaN(chr2)) {
                        enc3 = enc4 = 64;
                    } else if (isNaN(chr3)) {
                        enc4 = 64;
                    output.append(keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + keyStr.charAt(enc4));
                return output.toString();
        </script>
        <script type="text/vbscript">
        Function BinaryToArray(Binary)
               Dim i
               ReDim byteArray(LenB(Binary))
               For i = 1 To LenB(Binary)
                     byteArray(i-1) = AscB(MidB(Binary, i, 1))
                     concat2Bdy(AscB(MidB(Binary, i, 1)))
             Next
              BinaryToArray = byteArray
       End Function     
        </script>
    </head>
    <body>
        <input type="button" onclick="CreateEmail();" value="Attach Report" />
    </body>
    </html>

  • Can't download attachments using the MS CRM 2011 Outlook client

    Hello,
    I am trying to Open/Save Attachment (from Notes in Meeting Entity) in MS CRM 2011 for Outlook Client. Once I click on attachement nothing happen.
    Both CRM Server (On-Premise) and Outlook client are UR13. Its ADFS deployment.
    I've tried solution here:
    https://social.microsoft.com/Forums/en-US/fc222e9a-f426-4c1b-adaa-84c0923576f4/cant-download-attachments-using-the-ms-crm-2013-outlook-client?forum=crm
    But didn't helped.
    From log files I can't get any answer:
    I can download file using direct link in web browser. Also there isn't problem when downloading from CRM web app. 
    [2015-03-19 16:20:11.788] Process:Microsoft.Crm.Application.Outlook.WebFormsHost |Organization:00000000-0000-0000-0000-000000000000 |Thread: 1 |Category: Shared |User: 00000000-0000-0000-0000-000000000000 |Level: Verbose |ReqId: | ExceptionFilter.TryFilterAllCatch ilOffset = 0xF
    at ExceptionFilter.TryFilterAllCatch(Action body, Action`1 filter) ilOffset = 0xF
    at WebBrowserForm.BeforeNavigate(Object sender, DWebBrowserEvents2_BeforeNavigate2Event e) ilOffset = 0x50
    at AxWebBrowser.RaiseOnBeforeNavigate2(Object sender, DWebBrowserEvents2_BeforeNavigate2Event eventArgs) ilOffset = 0x15
    at AxWebBrowserEventMulticaster.BeforeNavigate2(Object pDisp, Object& uRL, Object& flags, Object& targetFrameName, Object& postData, Object& headers, Boolean& cancel) ilOffset = 0x29
    at RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) ilOffset = 0xFFFFFFFF
    at RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) ilOffset = 0x17
    at RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ilOffset = 0x89
    at UnsafeNativeMethods.DispatchMessageW(MSG& msg) ilOffset = 0xFFFFFFFF
    at ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData) ilOffset = 0x235
    at ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) ilOffset = 0x1DE
    at ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) ilOffset = 0x13
    at Application.Run(Form mainForm) ilOffset = 0x11
    at Program.Main(String[] args) ilOffset = 0xF0
    >Before Navigation for Site https://crm11.test.cz/PCSTEST/Activities/Attachment/download.aspx?AttachmentType=5&AttachmentId={1CFBD641-0BC7-E411-AC5E-005056A10023}&IsNotesTabAttachment=1 Resetting timer

    Thx for response Daniel.
    Attachements are stored directly in CRM DB (in Annotation table).
    I have also tried fiddler. And it looks response was OK (200). I think its problem with CRM for outlook client.

  • Unhandle error in Silverlight Application MS CRM 2011 with UR-18

    Hi All,
    Will silverligh work in MS CRM 2011 UR-18 /MS CRM 2013/2015, As I am getting the error "Unhandle Silverlight error" in MS CRM 2011 UR-18, But it was working fine in MS CRM 2011 UR-8.
    Please suggest me on the same.
    Thanks
    Srikanth Reddy

    Silverlight is a client-side technology, so shouldn't be impacted by the Crm Server version. Is this error on all clients, or just certain machines ?
    If the error is on all clients, and only after installing UR18, then the most likely problem is with the specific code in the Silverlight web resource. Can you identify where the error is thrown ?
    Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk

  • How to convert a optionset into multi selection picklist in crm 2011 using javasacript??

    hi,
    where user want to select not only one but multiple value
    from a pick list. I tried  examples but it shows some errors.
    How  to do it??

    Hey I meet a problème on my development see my result :
    link : https://social.microsoft.com/Forums/getfile/652331
    a multiple select list on my crm 2013 I do this process on this forum :
    link : https://social.microsoft.com/Forums/en-US/2db47a59-165d-40c9-b995-6b3262b949eb/how-to-convert-a-optionset-into-multi-selection-picklist-in-crm-2011-using-javasacript?forum=crmdevelopment
    my development :
    // var_sc_optionset >> Provide schema-name for Option Set field
    // var_sc_optionsetvalue >> Provide schema-name for field which will store the multi selected values for Option Set
    // OS >> Provide Option Set field object
    // OSV >> Provide text field object which will store the multi selected values for Option Set
    //Method to convert an optionset to multi select Option Set
    function ConvertToMultiSelect(var_sc_optionset, var_sc_optionsetvalue, OS, OSV)
    if( OS != null && OSV != null )
    OS.style.display = "none";
    Xrm.Page.getControl(var_sc_optionsetvalue).setVisible(false);
    // Create a DIV container
    // var addDiv = document.createElement("<div style='overflow-y:auto; color:#000000; height:160px; border:1px #6699cc solid; background-color:#ffffff;' />");
    var addDiv = document.createElement("div");
    addDiv.style.overflowY = "auto";
    addDiv.style.height = "160px";
    addDiv.style.border = "1px #6699cc solid";
    addDiv.style.background = "#ffffff";
    addDiv.style.color = "#000000";
    OS.parentNode.appendChild(addDiv);
    // Initialise checkbox controls
    for( var i = 1; i < OS.options.length; i++ )
    var pOption = OS.options[i];
    if( !IsChecked( pOption.text , OS, OSV) ){
    // var addInput = document.createElement("<input type='checkbox' style='border:none; width:25px; align:left;' />" );
    var addInput = document.createElement("input" );
    addInput.setAttribute("type","checkbox");
    addInput.setAttribute("style","border:none; width:25px; align:left;");
    else {
    // var addInput = document.createElement("<input type='checkbox' checked='checked' style='border:none; width:25px; align:left;' />" );
    var addInput = document.createElement("input" );
    addInput.setAttribute("type","checkbox");
    addInput.setAttribute("checked","checked");
    addInput.setAttribute("style","border:none; width:25px; align:left;");
    // var addLabel = document.createElement( "<label />");
    var addLabel = document.createElement( "label");
    addLabel.innerText = pOption.text;
    // var addBr = document.createElement( "<br />"); //it's a 'br' flag
    var addBr = document.createElement( "br"); //it's a 'br' flag
    OS.nextSibling.appendChild(addInput);
    OS.nextSibling.appendChild(addLabel);
    OS.nextSibling.appendChild(addBr);
    ///////Supported functions
    // Check if it is selected
    function IsChecked( pText , OS, OSV)
    if(OSV.value != "")
    var OSVT = OSV.value.split(";");
    for( var i = 0; i < OSVT.length; i++ )
    if( OSVT[i] == pText )
    return true;
    return false;
    // var_sc_optionsetvalue >> Provide schema-name for field which will store the multi selected values for Option Set
    // OS >> Provide Option Set field object
    // Save the selected text, this field can also be used in Advanced Find
    function OnSave(OS, var_sc_optionsetvalue)
    var getInput = OS.nextSibling.getElementsByTagName("input");
    var result = '';
    for( var i = 0; i < getInput.length; i++ )
    if( getInput[i].checked)
    result += getInput[i].nextSibling.innerText + ";";
    //save value
    control = Xrm.Page.getControl(var_sc_optionsetvalue);
    attribute = control.getAttribute();
    attribute.setValue(result);
    I have to do 2 field one is option list field and the second is textfield, 
    option list field : new_books
    textfiled          : new_picklistvalue
    my js is on onload event see : 
    link : https://social.microsoft.com/Forums/getfile/652333
    thanks you for you'r help 

  • CRM 2011 Installation Failed

    Dear all,
    I'm trying to install CRM 2011 on a Windows 2008 R2 Standard 64bit system. SQL server 2008 R2 and reporting services are also installed on the same machine.
    During the installation I got the following errormessage: "Microsoft.Crm.Setup.Server.ProvisionBusinessAction failed. Could not find GUID for server:
    <servername>"
    The installation account has full control over the Domain OU.
    Does anybody experience familiar issue? Do you have any hint/tip/solution?
    Thanks in advanceNaveed

    I manage to install CRM reporting Extension by using the domain account as Service Account in Reporting services but now I am getting error while
    importing CRM 4.0 to 2011 as below
    00:33:36|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:InstallStoredProcedure; 00:00:00.5154897
    00:33:36|  
    Info| Install fn_UserSharedAttributeAccess function in MSCRM
    00:33:36|Verbose| DatabaseAction execution time; Bin\Microsoft.Crm.Setup.DiffBuilder.dll:InstallStoredProcedure; 00:00:00.0312418
    00:33:36|  
    Info| Update partner authentication auditing fields.
    00:33:36|Verbose| Upgrading schema for 10 custom entities.
    00:33:36|Verbose| Upgrading schema for custom entity 'mssp_resource_dealcategory'.
    00:33:36|Verbose| Upgrading schema for custom entity 'mssp_resource_salesstage'.
    00:33:36|Verbose| Upgrading schema for custom entity 'new_projects'.
    00:33:39|  
    Info| CrmAction execution time; UpgradeDatabaseAction; 00:05:43.0571924
    00:33:39| 
    Error| Installer Complete: OrganizationUpgrader - Error encountered
    00:33:39| 
    Error| Exception occured during Microsoft.Crm.Tools.Admin.OrganizationUpgrader: Action Microsoft.Crm.Tools.Admin.UpgradeDatabaseAction failed.
    InnerException:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> Microsoft.Crm.CrmSecurityException:
    Could not find GUID for server ---> System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException: Global catalog not found in forest "AX1.local".
    at System.DirectoryServices.ActiveDirectory.GlobalCatalog.FindOneInternal(DirectoryContext context, String forestName, String siteName, LocatorOptions flag)
    at Microsoft.Crm.SecurityUtils.GetGuidFromServerName(String serverName)
    --- End of inner exception stack trace ---
    at Microsoft.Crm.SecurityUtils.GetGuidFromServerName(String serverName)
    at Microsoft.Crm.SecurityUtils.GetLocalSystemGuid()
    at Microsoft.Crm.Caching.OrganizationSettingsCacheLoader.LoadCacheData(Guid key, ExecutionContext context)
    at Microsoft.Crm.Caching.ObjectModelCacheLoader`2.LoadCacheData(TKey key, IOrganizationContext context)
    at Microsoft.Crm.Caching.CrmMultiOrgCache`2.CreateEntry(TKey key, IOrganizationContext context)
    at Microsoft.Crm.Caching.CrmMultiOrgCache`2.LookupEntry(TKey key, IOrganizationContext context)
    at Microsoft.Crm.Metadata.LocalizationHelper.GetLabelsForResource(String resourceName, Guid objectId, String objectColumnName, LabelTypeCode labelTypeCode, String collectionName, String labelName, IOrganizationContext context)
    at Microsoft.Crm.DataUpgrade.PartnerAuthenticationAuditingFieldsUpgrade.CreateAuditAttribute(MetadataBusinessEntity entity, String attributeName, MetadataHelper metadataHelper, ExecutionContext context)
    at Microsoft.Crm.DataUpgrade.PartnerAuthenticationAuditingFieldsUpgrade.CreateAuditingFields(MetadataBusinessEntity entity, MetadataHelper metadataHelper, ExecutionContext context)
    at Microsoft.Crm.DataUpgrade.PartnerAuthenticationAuditingFieldsUpgrade.UpgradeImpersonationAuditingFields()
    --- End of inner exception stack trace ---
    at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
    at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
    at Microsoft.Crm.Setup.Database.DllMethodAction.Execute()
    at Microsoft.Crm.Setup.Database.DatabaseInstaller.ExecuteReleases(ReleaseInfo releaseInfo, Boolean isInstall)
    at Microsoft.Crm.Setup.Database.DatabaseInstaller.Install(Int32 languageCode, String configurationFilePath, Boolean upgradeDatabase, Boolean isInstall)
    at Microsoft.Crm.Tools.Admin.InstallDatabaseAction.Do(IDictionary parameters)
    at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
    InnerException:
    Microsoft.Crm.CrmSecurityException: Could not find GUID for server ---> System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException:
    Global catalog not found in forest "AX1.local".
    at System.DirectoryServices.ActiveDirectory.GlobalCatalog.FindOneInternal(DirectoryContext context, String forestName, String siteName, LocatorOptions flag)
    at Microsoft.Crm.SecurityUtils.GetGuidFromServerName(String serverName)
    --- End of inner exception stack trace ---
    Naveed

  • Migrating from CRM 2011 on-premises to CRM Online (Attachments)

    I need to move our CRM 2011 on-premises to CRM Online. I got my customizations into CRM Online. My next task is to get the data there. Some are easy but I am not sure how to handle
    1) Interconnected records. For instance a case is connected to an account, emails, products, etc. I figured I just will
        a) export and then import leads first as accounts are connected to leads
        b) export and then import emails and products
        c) export and then import cases
    However, how to I assure that all these records are still having the same connections (case 100 connected to email 501 and 502, etc)
    2) Some records have files associated with them. The biggest one is emails that have attachments. How can I get these emails into CRM Online including attachments?

    Thanks. Scribe is way too expensive. SSIS might be an option I need to explore more. Any opinion about Microsoft Dynamics CRM Instance Adapter? I am reading some articles about it and consider giving it a try. However, I can't even find the download despite
    a lot of searches.
    https://community.dynamics.com/crm/b/magnetismsolutionscrmblog/archive/2013/03/12/microsoft-dynamics-crm-2011-instance-adapter-part-1-downloads.aspx

  • Publishing CRM 2011 on Web Applicaiton Proxy Using Kerberos Constrained Delegation

    Hello,
    Couldn't find a sub category that seemed suitable for this discussion so I just dropped it in Windows Server 2012 General.
    So to summarize...
    Web Application Proxy (WAP) on 2012r2, ADFS on 2012r2, and CRM 2011 RU11 is on 2008r2.
    WAP has a pass through rule setup for the ADFS site and a preauth rule setup for the CRM site.  All SPNs and delegation are setup in AD.
    Setup is 1 WAP, 1 NIC, 1 ADFS server and 1 CRM server.
    I have successfully publish my CRM 2011 site on Web application proxy and am successfully doing Kerberos Constrained Delegation.  I am also doing Client certificate authentication on the ADFS server which works fine.  I am doing this over 49443
    just fine.
    Try to access the CRM site, WAP redirects me to ADFS as expect, Client certificate auth happens at the ADFS server,  I am redirected back to my CRM site with my authToken so pre authentication can happen successfully.  KCD ensues after just fine
    and i am reverse proxied back to the CRM site.
    Here in lies the problem though...
    When i am reversed proxied back to the CRM site, i receive the standard "An error has occurred Try this action again.... yada yada yada" message with the Try Again or Close button.  If i click try again, i am able to access the site with no
    problem and the solution works great!  This obviously is not acceptable though.
    The error URL looks like the following (changed it for obvious reasons)
    https://crmsite.contoso.com/ORG1/_common/error/errorhandler.aspx?BackUri=https%3a%2f%2fadfs.contoso.com%2fadfs%2fls%3fversion%3d1.0%26action%3dsignin%26realm%3durn%253AAppProxy%253Acom%26appRealm%3d63ce68f1-3de4-e411-9412-005056a67a8d%26returnUrl%3dhttps%253A%252F%252Fcrmsite.contoso.com%252F%26client-request-id%3d4A1A0958-76F3-0000-5D91-1C4AF376D001&ErrorCode=&Parm0=%0d%0a%0d%0aError%20Details%3a%20An%20unhandled%20exception%20occurred%20during%20the%20execution%20of%20the%20current%20web%20request.%20Please%20review%20the%20stack%20trace%20for%20more%20information%20about%20the%20error%20and%20where%20it%20originated%20in%20the%20code.&RequestUri=%2fdefault.aspx
    The error that correlates to this in CRM is
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Little bit further down
    Exception information:
        Exception type: InvalidOperationException
        Exception message: CRM Parameter Filter - Invalid parameter 'AuthMethod=CertificateAuthentication' in Request.Form on page /default.aspx
    If anybody has any insight or experience publishing CRM on WAP using KCD and has run into this issue, help would be greatly appreciated.
    Also to head of this question, we can not do an IFD setup.  There is a custom developed solution which resides on top of the CRM installation that is not claims friendly.
    Thanks!
    Jonathan

    Hi,
    Please check if anyone of the links below is helpful:
    http://blogs.msdn.com/b/javaller/archive/2014/01/13/publishing-crm-internet-facing-deployment-using-web-application-proxy-and.aspx
    http://blogs.technet.com/b/dynamicspts/archive/2014/10/03/using-web-application-proxy-to-publish-dynamics-crm-2013-to-the-internet.aspx
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • BizTalk 2013 connectivity to CRM Dynamics 2013 Online

    Hi,
    For one of the upcoming integrations, out client is going for CRM Dynamics 2013 Online. We need to integrate legacy systems with CRM Dynamics 2013 Online. Since we do not have any adapter connectivity as of now from BizTalk 2013 to CRM Dynamics
    2013 Online, when can we expect a new adapter for CRM Dynamics 2013 Online from Microsoft. 
    Thanks and Regards,
    Ujjwal
    -Ujjwal

    Hi,
    Please refer the information which maybe is helpfull:
    #Dynamics CRM BizTalk Adapter
    https://www.rssbus.com/biztalk/mscrm/
    #Dynamics CRM Guide
    http://www.dynamicscrmguide.com/biztalk-2013-to-crm-2011-integration/
    Hope it can help you.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Unable to import psd/CR2 into LR 4.1

    Scenario...needed larger HD and did a clean install of windows 7 after doing a search of my original HD for all PSD/CR2 images> then doing the "drag drop" technique of copying/backing-up those images to another external and an internal HD. Then did t

  • J_CLBALTAX y S_ALR_87099950 reports

    Hi All, Thank for reading this. I have a very big problem. A customer from Chile consult for two reports that are required to deliver to agents of control and as indicated by them boths reports must match in Debit / Credit values. The first is the on

  • Cant restore 80GB Ipod because I dont have the Internet???

    So my wife bought me an 80gb Ipod and shipped it out to me (Im in Iraq). I hooked it up to my computer and it immediately started to work and sync all my music and what not onto it. I believe at the time I was using Itunes version 7.3. Well then I ho

  • I cant register my new iPod

    I cant register my new iPod. This is because I have no bottom scroll bar. My iTunes wont allw me to use my iPod without registering it and I cant register it beacause it only shows half the page. I click to register then when I get to the second page

  • IPhone not recognised and not charging

    hi folks here is your opportunity to shine were other forums have failed terribly. i have an iPhone on version 1.0.2 and this is the problem i have. 1. my computer (or any other computer) doesn't recognise my phone 2. there is no response from the ph