Thursday 1 May 2014

New and updated content is available for cumulative update 6 for Microsoft Dynamics AX 2012 R2

New and updated content is available for cumulative update 6 for Microsoft Dynamics AX 2012 R2

Cumulative update 6 (CU6) for Microsoft Dynamics AX 2012 R2 is now available on CustomerSource and PartnerSource.

Documentation that that was updated or created for Microsoft Dynamics AX 2012 R2 CU6 is available on TechNet.

Microsoft Dynamics AX 2012 Statement of Direction
Help and Resources Datasheet for Microsoft Dynamics AX 2012
Official Dynamics AX 2012 Content blog post on Inside Dynamics AX


Updated content available on TechNet for enhanced business processes

Starting with cumulative update 6 (CU6) for Microsoft Dynamics AX 2012 R2, we are adding to the types of updates that are included in cumulative updates. Cumulative updates now include enhancements to business processes, as well as rollups of hotfixes and regulatory updates. The business process enhancements that are included in this cumulative update include the following.





Application hotfixes that are included in Microsoft Dynamics AX 2012 R2 CU6

CU6 for Microsoft Dynamics AX 2012 R2 contains over 350 application hotfixes. For more information, see the Application hotfix section of Knowledgebase article 2850972.

Binary hotfixes that are included in Microsoft Dynamics AX 2012 R2 CU6

CU6 for Microsoft Dynamics AX 2012 R2 contains over 70 binary hotfixes. For more information, see the Binary hotfix section of Knowledgebase article 2850972.

Country-specific updates that are included in Microsoft Dynamics AX 2012 R2 CU6

CU6 for Microsoft Dynamics AX 2012 R2 contains a number of country-specific updates. For more information, see the Country-specific update section of Knowledge base article 2850972.

New features in Microsoft Dynamics CRM 2013: Customized Social Pane, simplified Notes

New features in Microsoft Dynamics CRM 2013: Customized Social Pane, simplified Notes

Microsoft Dynamics CRM 2013, the cloud-based customer relationship management platform, announced new features for customizing the Social Pane and simplifying Notes.

The information is shared on the Microsoft Dynamics CRM Blog. The Social Pane was introduced last December, and is where you can see all business interactions related to a specific record, such as an account, contact or lead, explains Anshuman Ansu in a blog post about customizing the Social Pane.

The Social Pane also shows the activity feeds, associated activities, notes and Yammer tabs (if Yammer is configured). Using form customization “enables you to prioritize what data you want to see first.”

With the latest release of Microsoft Dynamics CRM, Notes has been revamped “to offer commands right inline for creating, editing, and deleting notes or adding attachments,” writes Shahzor Khan in a blog post about Notes, where he shares information about the new features. “Everything you want to do with Notes can now be done a lot easier!”

Also, in a separate blog post, the Microsoft Dynamics CRM Team writes about user enhancements that are part of the CRM 2013 and CRM Online Fall ‘13 release of Microsoft Dynamics CRM.

Previously, a “limited set of these experiences” were delivered with the Microsoft Dynamics CRM December 2012 Service update for the CRM Online customers. The new release is “a milestone in moving our customers to a new, delightful user experience,” the team writes.

“We are creating an experience that is created to support the way people need to do their work, not just the things that they work with,” they say. That includes, for example, a single window experience.

“By keeping everything the user needs in one window (unless asked for it) we lower the user’s cognitive load, making the app easier to use and the users more efficient,” they write.
Enterprenuers ERP solutions for small and mid-sized businesses



Wednesday 30 April 2014

Creating a record using Jscript

Create a record using JavaScript


The below snippet code can be used to create a record by java Script. we nedd to add Json2 and jquery1.4.1.min files to webresource which we can get from SDK.

function RecordCreate() {
if(Xrm.Page.getAttribute('new_name') != null)   //checking whether the attribute is null or not
{
var name = Xrm.Page.getAttribute('new_name').getValue();
}
if(Xrm.Page.getAttribute('new_mainphone') != null)
{
var mainphone = Xrm.Page.getAttribute('new_mainphone').getValue();
}
    var context = Xrm.Page.context;
    var serverUrl = context.getServerUrl();
    var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
    var CRMObject = new Object();
    /////////////////////////////////////////////////////////////
    // Specify the ODATA entity collection
    var ODATA_EntityCollection = "/AccountSet";           //Entity_NameSet--- type of record to be created
    /////////////////////////////////////////////////////////////
    // Define attribute values for the CRM object you want created
    CRMObject.Name = name;                        //"Name" is Schema Name of a field in my account entity
    CRMObject.Telephone1 = mainphone;      //"Telephone1" is Schema Name of a field in my account entity
      CRMObject.Address1_Name=name;
  
    //Parse the entity object into JSON
    var jsonEntity = window.JSON.stringify(CRMObject);
    //Asynchronous AJAX function to Create a CRM record using OData
    $.ajax({ type: "POST",
        contentType: "application/json; charset=utf-8",
        datatype: "json",
        url: serverUrl + ODATA_ENDPOINT + ODATA_EntityCollection,
        data: jsonEntity,
        beforeSend: function (XMLHttpRequest) {
            //Specifying this header ensures that the results will be returned as JSON.
            XMLHttpRequest.setRequestHeader("Accept", "application/json");
        },
        success: function (data, textStatus, XmlHttpRequest) {
            alert("success");
            var NewCRMRecordCreated = data["d"];
            alert("CRM GUID created: " + NewCRMRecordCreated.AccountId);    //AccountId is a Primary field in Account Entity.
        },
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            alert("failure");
        }
    });
}

Phone number validation in crm 2011

The Below snippet is essential for Validating Phone no in CRM2011. Add the JavaScript as Web Resource in CRM. Add Web Resource as On-Change Event of a particular Phone no field. Also check the option of Pass Execution Context as first parameter in handler properties.

function validatePhone(context)
{

var phone =context.getEventSource().getValue();
var sTmp = phone.replace(/[^0-9]/g, "");
phoneRegex = /^\d{10}$/;

if( !sTmp.match( phoneRegex ) )
   {
   event.returnValue = false;
   alert("Phone must contain 10 numbers.") ;
   }
else
  {
   var sTmpClean =  "(" + sTmp.substr(0, 3) + ") " + sTmp.substr(3, 3) + "-" + sTmp.substr(6, 4);
   context.getEventSource().setValue(sTmpClean);
  }
}


 Here the Phone no is validated that it contains 10 Characters and all are numeric and later placed in a Pr-defined format which is "(xxx)xxx-xxxx".