CRM 2015 Xrm.Page.ui.controls.forEach bug on inactive record.

Hi all,
There is a bug in CRM 2015 whereby if you have Xrm.Page.ui.controls.forEach on a deactivated record, it sets the value of the statuscode back to an active one. This means that if you do an Xrm.Page.getAttribute("statuscode").getValue() afterwards
it will return an incorrect value. The screen remains correct and the isDirty flag is not set so doesn't force a save.
To recreate this issue. On an entity with a status code  on the form have the following script on the page load. Deactivate the record and refresh the page....
function onLoad(){
    alert(Xrm.Page.getAttribute("statuscode").getValue());
    Xrm.Page.ui.controls.forEach(function(control, index){});
    alert(Xrm.Page.getAttribute("statuscode").getValue());
Thought I would let everyone know as it took me ages to work out what was going wrong :-(
Chris

Similar Messages

  • Question on CRM 2015 on-premise features (U.K. version)

    Hi All,
    Does the new on premise version of the CRM 2015 come with an in-built Marketing system which records delivery stats such as email opens, click thrus etc. or is this somthing contained in a plug-in or something you have to subscribe to? I ask because we are
    about to install a third party email marketing system into CRM and I can't see how the CRM 2015 can capture this level of detail unless Microsoft were sending the emails on our behalf through some sort of cloud service? We currently use CRM 2011 and i do recall
    that landing pages were available in the US on-premise version but not the UK on-premise version so I am aware that differences can exist between versions.
    Any advice would be greatly appreciated.
    Thanks
    David
    David Kelly

    No, that is a separate product called Dynamics Marketing.  It's not part of CRM.  You can add tools like ClickDimensions to CRM to handle that for you if you as well.
    also, landing pages have been entirely removed form Dynamics CRM.
    The postings on this site are solely my own and do not represent or constitute Hitachi Solutions' positions, views, strategies or opinions.

  • Flitered Sub-grid in Online CRM 2015

    Hi all ,
       I have the following requirement. In Case form we included multiple sub-grids (Opportunity,Lead, etc..). On selecting the value in customer field, only the related records of that particular Customer should flow in the
    respective sub-grids.
    The same functionality we worked in CRM 2013 which was working fine. At present in CRM 2015 on loading the form some times it is working & some times it is not working (means some times it shows related record & some times it shows all records).
    Unable to identify the issue. We have also tried by refreshing the sub-grid twice in J-script.
    Any solution?
    Thanks &  Regards
    Shankar

    Hi Polat,
     Thanks for your reply. We have done the same work. Please find below Jscript we have used, which is working fine in CRM 2013. In CRM 2015 some times it works & some times it shows all the records with out filter. So any other solution for
    this issue.
    function BindGridSubscription() {
        // Get  Customer
        var lookupfield = new Array;
        lookupfield = Xrm.Page.getAttribute("customerid").getValue();
        if (lookupfield != null) {
            var lookupid = lookupfield[0].id;
        else {
            return;
        var relatedSubscriptions = null;
        relatedSubscriptions = document.getElementById('sgvSubscriptionDetails');
        if (relatedSubscriptions == null || relatedSubscriptions.readyState != "complete") {
            setTimeout('BindGridSubscription()', 2000);
            return;
        var fetchXmlSubs = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>";
        fetchXmlSubs += "<entity name='opportunity'>";
        fetchXmlSubs += "<attribute name='opportunityid' />";
        fetchXmlSubs += "<attribute name='tec_zone' />";
        fetchXmlSubs += "<attribute name='totalamount' />";
        fetchXmlSubs += "<attribute name='tec_subscriptiontype' />";
        fetchXmlSubs += "<attribute name='tec_copystartdate' />";
        fetchXmlSubs += "<attribute name='tec_copyenddate' />";
        fetchXmlSubs += "<attribute name='tec_subscribedscheme' />";
        fetchXmlSubs += "<attribute name='tec_subscribedproduct' />";
        fetchXmlSubs += "<attribute name='tec_schemestartdate' />";
        fetchXmlSubs += "<attribute name='tec_schemeenddate' />";
        fetchXmlSubs += "<attribute name='tec_poimplementationdate' />";
        fetchXmlSubs += "<attribute name='tec_bookingformnumber' />";
        fetchXmlSubs += "<attribute name='tec_bookingdate' />";
        fetchXmlSubs += "<order attribute='tec_zone' descending='false' />";
        fetchXmlSubs += "<filter type='and'>";
        fetchXmlSubs += "<condition attribute='customerid' operator='eq' uitype='contact' value='" + lookupid + "' />";
        fetchXmlSubs += "</filter>";
        fetchXmlSubs += "</entity>";
        fetchXmlSubs += "</fetch>";
        relatedSubscriptions.control.SetParameter("fetchXML", fetchXmlSubs);
        relatedSubscriptions.control.Refresh();
    Thanks
    Shankar

  • Unable to register custom workflow activity on MS CRM 2015 Online

    Hi All,
    I am trying to register custom workflow activity using plugin registration tool on MS CRM 2015 Online.
    Error says that 'No Plugin have been selected from list. Please select atleast one and try again'
    In short my assembly is not considered as custom workflow activity.
    I am giving my code let me know, If any thing is wrong.
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Activities;
    using Microsoft.Xrm.Sdk;
    using Microsoft.Xrm.Sdk.Workflow;
    namespace Training.SamplePlugin
        public class SampleCustomworkflow : CodeActivity
            [Input("Birthday")]
            public InArgument<DateTime> BirthDate { get; set; }
            [Output("NextBirthday")]
            public OutArgument<DateTime> NextBirthDay { get; set; }
            protected override void Execute(CodeActivityContext executionContext)
                //Create the tracing service
                ITracingService tracingService = executionContext.GetExtension<ITracingService>();
                //Create the context
                IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
                IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
                IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
                if (context.PrimaryEntityName.ToLowerInvariant() == "contact")
                    DateTime birthDate = BirthDate.Get<DateTime>(executionContext);
                    DateTime nextBirthDate = new DateTime(DateTime.Now.AddYears(1).Year, birthDate.Month, birthDate.Day);
                    //NextBirthDay.Set(executionContext, nextBirthDate);
                    Entity newContact = new Entity();
                    newContact.LogicalName = "contact";
                    newContact.Id = context.PrimaryEntityId;
                    newContact["new_nextbirthday"] = nextBirthDate;
                    service.Update(newContact);
    If code is correct then has somebody faced this kind of issue earlier, what is resolution.
    Thanks
    Apurv

    Have your signed your assembly ??
    Microsoft Dynamics CRM Training|Our Blog |
    Follow US |
    Our 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.

  • Cant add Competitors on Mobile Phone App CRM 2015

    I'm currently configuring the mobile phone app for CRM 2015 online.
    The issue i'm having is that i cant seem to add competitors, either directly or to an existing Lead or Opportunity. Although the entity appears in the lead and opportunity records, it only shows already added competitors (which were added via the browser
    or tablet app). I don't seem to have the option to add new competitors within the mobile phone app as the little "+" symbol at the top of the form is not present.
    I have the competitors entity enabled for the mobile phone app and tablet app. the tablet app works fine.
    I've also noticed that competitors entity appears on the tablet home page navigation but not on the mobile home page.
    Any suggestions?

    Hi,
    This is very urgent. I have to submit the app in 2 days. Doesn'y anyone have any idea about this?? Please Help

  • E-mail router (On-premise) to CRM 2015 (On-line) connectivity issue

    Hello Experts,
    I was trying to configure e-mail router on my location environment (working on domain administrator credentials :)) to connect to CRM 2015 Online server (TRIAL version).
    Unfortunately during "Load data" process ("Users, Queues and Forward Mailboxes" tab in E-mail Router Configuration Manager) I'm still getting "Access is denied" error.
    "CRM Server address" I'm using is: “https://disco.crm.dynamics.com/orgname” ("orgname" is 100% correct, I've also tried "DEV" instead of "DISCO" address option) and "Access credentials"
    specified are also correct (this is System Administrator user in my CRM organization).
    I assume that the problem is somehow connected with user account, because when I’m trying to use some fake one (ex. "[email protected]") the error message is different ("GetAuthStateEx(), Request Status: ").
    I was trying to use Fiddler to see problem source and I found that "Access denied" is return during accessing "https://disco.crm.dynamics.com/XrmServices/2011/Discovery.svc" URL.
    Am I missing something? Should CRM account used by e-mail router have some additional permissions except "System administrator" role in CRM?
    Any help will be really appreciated.
    Kind regards,
    Piotr

    I've checked unique organization name on developer resources page many times (this is very common reason of many problems with e-mail router deployments).
    Actually I'm looking at this name right now and it is 100% correct (only lowercase letters, no "strange" characters :)).
    Today - the error message looks a little different.
    I've checked above mentioned web service address ( https://disco.crm.dynamics.com/XrmServices/2011/Discovery.svc ) in IE and there is no problem with accessing it.
    I'm wondering should this error be somehow connected with fact that our CRM online organization is TRIAL version or that it is 7.0.1 version (our e-mail router is 7.0.0)?
    Any other ideas?
    Best regards,
    PG

  • CRM 2015 Update 0.1 Install Fails with SQL Error

    Hi, anyone managed to install CRM 2015 Update 0.1?
    The software installed fine but the DB updates fail with a SQL error. Just want to know if this is just my issue or if MS have a bug in the update. This is the SQL error:
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: The current transaction cannot be committed and cannot support operations that write to the log file. Roll
    back the transaction.
    Uncommittable transaction is detected at the end of the batch. The transaction is rolled back.
    All of the ORGs fail with this error, even when I try to apply the DB update via Deployment manager. I've had to back out the rollup.

    The issue appears when the update process creates the index cndx_BusinessDataLocalizedLabel. This is a known cause which is under investigation internally. Currently it seems to plan to release in CRM 2015 SP1

  • Xrm.Page Script Snapshot - Not Working

    I've installed the 2011 CRM SDK and am trying to go through the steps listed in the Read Me Word Document but I am hung up now. When I click the Xrm.Page Snap Shot I get the Dialog however when I click Get Data, It looks like it does something for a second
    but I never get the data to copy and paste also the copy to clip board button does not show up. Been fighting with this for a few hours now, I've tried to re-install a few times but still no success. 

    I have been able to make some progress I found that it works on entities with a sprocket icon but not on entities that have a brown folder in front of some pages, I'm not sure what the entity types mean. If anyone can shed some light.
    Michael

  • How to access CRM 2015 On-Premise from Azure web application

    hi,
    I have deployed a MVC Application on Microsoft Azure. I was wondering Is it possible to access(read and write records like we do normally in local deployment) CRM On-Premise from Cloud or Do CRM 2015 should be IFD deployed? 
    Any pointers will be highly appreciated.

    Hi,
    I don't familiar with CRM 2015 On-Premise, but it seems that this is a feature request, please access this website:
    https://zapier.com/zapbook/microsoft-dynamics/windows-azure-web-sites/, you could also ask this issue at CRM forum.
    Disclaimer: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites;
    therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure
    that you completely understand the risk before retrieving any software from the Internet
    Best Regards,
    Jambor
    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.

  • SharePoint List Component Activation Error CRM 2015 SP 2010

    Hi
    We are trying to load up the CRM 2015 list component on SharePoint 2010.  We have enabled the SharePoint Sandbox and did other searching but have not seen any web results for this error.  We have tried to load this in 2 different environments and
    get the same error.  Any help would be appreciated.
    Thanks Paul
    Name=Request (POST:http://pmt-d:80/_catalogs/solutions/Forms/Activate.aspx?IsDlg=1&op=ACT&ID=1&Source=http%3A%2F%2Fpmt%2Dd%2F%5Fcatalogs%2Fsolutions)
    Template Discovery/InitScriptData: cannot get user profile, no UserProfileApplicationProxy exists in the current context
    Solution Deployment : Looking for 'ReceiverAssembly' attribute in manifest root node for solution 'crmlistcomponent.wsp'.
    Solution Deployment : Looking for 'ReceiverClass' attribute in manifest root node for solution 'crmlistcomponent.wsp'.
    Solution Deployment : Missing one or more of the following attributes from the root node in solution crmlistcomponent.wsp: assembly '', type ''.
    System.ArgumentException: Culture name 'sr-cyrl' is not supported. Parameter name: name  
    at System.Globalization.CultureTableRecord..ctor(String cultureName, Boolean useUserOverride)  
    at System.Globalization.CultureTableRecord.GetCultureTableRecord(String name, Boolean useUserOverride)  
    at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)  
    at System.Reflection.AssemblyName.nGetFileInformation(String s)  
    at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile)  
    at Microsoft.SharePoint.Administration.SPUserCodeSolutionPackage.GetAssemblyName(String solutionRelativePath)  
    at Microsoft.SharePoint.Administration.SPSolutionPackage.SolutionFile.get_AssemblyName()  
    at Microsoft.SharePoint.Administration.SPSolutionPackage.SolutionFile.get_HasStrongName()  
    at Microsoft.SharePoint.Administration.SPSolutionPackage.AddAssemblies(XmlNode root, String strFileDirRelativeToCabFile)  
    at Microsoft.SharePoint.Administration.SPSolutionPackage.ProcessSolutionManifest()  
    at Microsoft.SharePoint.Administration.SPSolutionPackage.Load()  
    at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionPackage(SPRequest request, String name, String signature, Byte[] fileBytes)  
    at Microsoft.SharePoint.SPUserSolutionCollection.<>c__DisplayClass1.<AddOrUpgrade>b__0()  
    at Microsoft.SharePoint.Utilities.SecurityContext.RunAsProcess(CodeToRunElevated secureCode)  
    at Microsoft.SharePoint.SPUserSolutionCollection.AddOrUpgrade(SPListItem item, SPUserSolution existingSolution)  
    at Microsoft.SharePoint.SPUserSolutionCollection.Add(Int32 solutionGalleryItemId)  
    at Microsoft.SharePoint.WebControls.SolutionItemButton.ActivateItem()  
    at Microsoft.SharePoint.WebControls.SPLinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)  
    at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)  
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint

    Daniel - if I understand your question correctly, Yes, AAM is configured in SharePoint 2010 and working fine. 
    The CRM 2013 List Component activates just fine, I will use that for now while we test CRM 2015.  In my particular case I am using ADFS and IFD but I don't think that matters because I get the error the original poster is getting when I try to activate
    the crmlistcomponent.wsp in the site collection (long before any interaction with CRM).

  • Dynamics CRM 2015 Install requires Active Directory on VM Windows 2012 R2 Server

    Hello,
    I'm trying to install Dynamics CRM 2015 on a standalone VM not connected to a domain (it's running under WIndows 8.1 Professional). The VM was configured using WIndows Server 2012 R2. I'm getting an error message shortly into the install process stating
    it needs to access Active Directory.
    How can I get around this issue - I just want to Install this CRM on the VM without getting into complicate network/AD issues.
    Can you please advise ?
    SO many thanks,
    John

    CRM requires AD no way around that so the most likely solution is to install it on that server or on a VM not connected to your other networks
    Jason Lattimer
    My Blog -  Follow me on Twitter -  LinkedIn

  • CRM 2015 installation hangs without errors on Windows Server 2012 installed in a VM

    I have installed a Windows Server 2012 and SQL Server 2012 on a VM using VMware Player and then installed Dynamics CRM 2013, working out all the configuration problems.
    The installation hanged once without errors and when I tried it again it was installed, no problems. Dynamics CRM 2013 works without issue.
    Then I copied the machine, uninstalled the Dynamics CRM 2013 and started installing CRM 2015. However this time without errors the installation hangs even though I tried more than 5 times.
    There are no errors, installation program is not unresponsive and task manager shows nothing out of the ordinary.
    I have also tried this on multiple physical and virtual PCs to no avail.

    Try to Delete the registry files of CRM before you start the installation : HKEY_LOCAL_MACHINESOFTWAREMicrosoftMSCRM

  • How to tell if the AE programm is called from (1) SYSTEM PROCESS REQUEST or (2) page run control request

    We just wrote an AE program and is called through the vanilla SYSTEM PROCESS REQUEST.
    It's running on a daily basis ie. with RECURRENCE.
    Now we need to call the same program through the regular page run control request.
    But we are not how to recognize from inside the AE program if whether it's been called from SYSTEM PROCESS REQUEST or RUN CONTROL REQUEST.
    Any of you might have suggestion ?
    Any technique or workaround is also appreciated.
    THANKS in Advance .

    This AE pgm is currently automatically called from SYSTEM PROCESS REQUEST on a daily basis to load data from an input file deposited on the server ready for pickup.
    We would like to use the same AE pgm ( thus using the same validation and loading logic ) to load the same file format but defined by the user ( via attachment load ) as needed any time during the day.
    The user will initiate this AE pgm online ( ie. from a page with his parameters ).
    Currently, the pgm now already runs automatically daily and we wish to make it also available to be run by user anytime in the day
    To achieve that, we would need to know:
    Is the AE pgm ran by (a) the user or by the (b) SYSTEM PROCESS REQUEST so that the program can decide of where to take input file.
    (a) Take from an attachment defined by user or (b) from the input file already deposited on the server for pickup
    That is the reason why we try to detect who called the AE pgm in order decide where to pickup the input file.
    Your help is much appreciated as I do researches but so far haven't gotten a concluded decision.
    Thank you.
    Message was edited by: Kel_123

  • Email Template Issue in MS CRM 2015 Online

    Hi,
    We recently upgraded the CRM form 2011 on premise to MS CRM 2015 online.
    We are facing the issue in Email Templates navigation in MS CRM 2015 online version as mentioned below.
    SETTINGS-->TEMPLATES-->Email Templates getting the following error message.
    I have deleted all the email templates in DEV instance but still this error occurred.
    Please help how to resolve this issue. Its very urgent.
    Yadav

    Hi,
    Please let me know if anybody aware of this issue.
    Yadav

  • CRM 2015 Outlook Plugin and SCCM 2012

    Good Morning!
    In need of some assistance from you more experienced SCCM admins. Let me quickly run down the steps of what I've done:
    1) Created a network share for CRM 2015 that everyone can see
    2) Ran the EXE from Microsoft and followed the instructions from them to create the CrmClient_32.msi 
    3) In SCCM, created a new application, and linked the shared folder. SCCM auto-populated the install command, publisher data, etc. The only thing I added was "/s" for the MSI package to install
    4) Created a Device Collection with one test PC that already has CRM 2013 installed
    5) Deployed the application to the device collection with the following options:
    Under Content Tab:
    Content Location: \\networkshare\Installs\CRM2015
    Persist content in the client cache is NOT checked
    Allow clients to share content with other clients on the same subnet IS checked
    Deployment options: Do not download content
    Under the Programs Tab:
    Installation program: msiexec /i /s "CrmClient_32.msi"
    Installation start in: blank
    Uninstall program: msiexec /x 
    Run installation and uninstall program as 32-bit process on 64-bit clients IS checked
    Under User Experience Tab:
    Installation Behavior: Install for system
    Logon requirement: Whether or not a user is logged on
    Installation program "margin-bottom:9px;padding-right:0px;padding-font-family:Arial, Helvetica, sans-serif;font-size:14px;line-height:21px;word-wrap:break-word;color:#333333;">Maximum allowed run time ( 120 minutes)
    Estimated installation time (0 minutes)
    6) I schedule the install (for most applications I've seen this works best)
    Now when I go to Monitoring, all I see is the deployment is "In Progress" and the category is "Waiting for content" 
    I'm frustrated because I don't understand why this won't work. It seems so painless and the method I've described above works for almost any other application I've pushed out.
    I'm all ears - is there anything you see that isn't correct? Any ideas or suggestions? If you've successfully pushed out CRM 2015 some how (even if it's not through SCCM), could you please share your solution?
    Thank you so much! -Nick

    Hi,
    In need of some assistance from you more experienced SCCM admins
    Since we are not familiar with SCCM, please refer to SCCM forums below to get more professional support:
    https://social.technet.microsoft.com/Forums/en-US/home?category=configurationmanager&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]

Maybe you are looking for

  • How long does it really take to get my unlimited data plan back?

    So Wednesday morning I go into a local Verizon owned-and-operated store to buy a Galaxy S5 on installment plan, like I did for my GS4 a year ago. Get talked into an Edge phone plan and the More plan, and they get that unlimited data plan off my line

  • Error while Creating Travel Request ..thru TRIP

    Dear all, As I am suppose to creat a travel request thru TRIP but i am geting the below error and the msg no.............. Error: Trip country IN / trip region do not exist in the system (T702O) Message no. PTRA_WEB_INTERFACE031 As Mr. Paulo Vitorian

  • Radeon HD 7800 (catalyst) + Intel HD graphics (intel-dri) seg fault

    Hello, Arch community! I'm using two monitors setup: one is connected to the Radeon HD 7800 other is connected to the motherboard D-SUB socket. Symptoms: - X starts if to use opensource radeon driver. - X starts if to use only one screen inside Serve

  • Send fillable form as PDF file

    Hello, I created a fillable PDF document using Adobe Acrobat XI Pro for MAC and at the bottom of the form, I added a button to send the form.  This form is being filled out by employes using Adobe Acrobat Reader.  They must fill out the form and clic

  • OS X Lion secondary click is not working, any help

    Since I`ve downloaded Lion, the secondary click does not work, I can´t even select it on the trackpad window