Wednesday, 3 July 2013

Microsoft Dynamics CRM Object Type Codes

Today will learn some thing about MS CRM object type codes.

Here the list of Object type codes available in CRM for system entities.


Entity nameValue
None0
Account1
AccountLeads16
ActivityMimeAttachment1001
ActivityParty135
ActivityPartyRollupByAccount4603
ActivityPartyRollupByContact4604
ActivityPointer4200
Annotation5
AnnualFiscalCalendar2000
Appointment4201
AsyncOperation4700
AttributeMap4601
BulkOperation4406
BulkOperationLog4405
BusinessUnit10
BusinessUnitMap6
BusinessUnitNewsArticle132
Calendar4003
CalendarRule4004
Campaign4400
CampaignActivity4402
CampaignActivityItem4404
CampaignItem4403
CampaignResponse4401
ColumnMapping4417
Commitment4215
Competitor123
CompetitorAddress1004
CompetitorProduct1006
CompetitorSalesLiterature26
ConstraintBasedGroup4007
Contact2
ContactInvoices17
ContactLeads22
ContactOrders19
ContactQueues18
Contract1010
ContractDetail1011
ContractTemplate2011
CustomerAddress1071
CustomerOpportunityRole4503
CustomerRelationship4502
Discount1013
DiscountType1080
DocumentIndex126
DuplicateRecord4415
Email4202
EntityMap4600
Equipment4000
Fax4204
FilterTemplate30
FixedMonthlyFiscalCalendar2004
Import4410
ImportFile4412
ImportMap4411
Incident112
IncidentResolution4206
IntegrationStatus3000
InternalAddress1003
Invoice1090
InvoiceDetail1091
KbArticle127
KbArticleComment1082
KbArticleTemplate1016
Lead4
LeadAddress1017
LeadCompetitors24
LeadProduct27
Letter4207
License2027
List4300
ListMember4301
LookUpMapping4419
MailMergeTemplate9106
MonthlyFiscalCalendar2003
Opportunity3
OpportunityClose4208
OpportunityCompetitors25
OpportunityProduct1083
OrderClose4209
Organization1019
OrganizationUI1021
OwnerMapping4420
PhoneCall4210
PickListMapping4418
PluginType4602
PluginAssembly4605
PriceLevel1022
PrincipalObjectAccess11
Privilege1023
PrivilegeObjectTypeCodes31
Product1024
ProductAssociation1025
ProductPriceLevel1026
ProductSalesLiterature21
ProductSubstitute1028
QuarterlyFiscalCalendar2002
Queue2020
QueueItem2029
Quote1084
QuoteClose4211
QuoteDetail1085
RelationshipRole4500
RelationshipRoleMap4501
Resource4002
ResourceGroup4005
ResourceSpec4006
Role1036
RolePrivileges12
RoleTemplate1037
RoleTemplatePrivileges28
DuplicateRule4414
DuplicateRuleCondition4416
SalesLiterature1038
SalesLiteratureItem1070
SalesOrder1088
SalesOrderDetail1089
SavedQuery1039
SdkMessage4606
SdkMessagePair4613
SdkMessageRequest4609
SdkMessageRequestField4614
SdkMessageRequestInput4612
SdkMessageResponse4610
SdkMessageResponseField4611
SdkMessageFilter4607
SdkMessageProcessingStep4608
SdkMessageProcessingStepImage4615
SemiAnnualFiscalCalendar2001
Service4001
ServiceAppointment4214
ServiceContractContacts20
Site4009
StatusMap1075
StringMap1043
Subject129
Subscription29
SubscriptionClients1072
SubscriptionSyncInfo33
SystemUser8
SystemUserLicenses13
SystemUserPrincipals14
SystemUserRoles15
Task4212
Team9
TeamMembership23
Template2010
Territory2013
TransformationMapping4426
TransformationParameterMapping4427
UnresolvedAddress2012
UoM1055
UoMSchedule1056
UserFiscalCalendar1086
UserQuery4230
UserSettings150
WorkflowCompletedScope4701
WorkflowWaitSubscription4702
Workflow4703
WorkflowDependency4704

Friday, 28 June 2013

MSCRM 2011 Supported JavaScript - Part 2 - Hiding Section



Hiding/Showing Section Dynamically based on Picklist Value -- (Supported)

 

In  Real Scenario, developers use to get many client requirements especially on PickList change, here i have taken one example of Showing and Hiding Sections/Tabs based on PickList change.


PickList field name = "new_picklist"

Write this script in the onchange of the PickList field.


function pickOnchange()
{  
     var pValue = Xrm.Page.getAttribute("new_picklist").getValue();

     if(pValue=="1")
    {
        ToggleSection(0,1,false);
    }
    if(pValue=="2")
    {     
        ToggleSection(0,1,true);
    }

    function ToggleSection(tabIndex, sectionIndex, displayType)
    {
        Xrm.Page.ui.tabs.get(tabIndex).sections.get(sectionIndex).setVisible(displayType);      
    }
}

Also we can hide the tab ...

Xrm.Page.ui.tabs.get(tabIndex).setVisible(displayType);      



Note : We can also pass Name of the Tab and Section instead of Index.



MSCRM 2011 Supported JavaScript - Part 1


Script to Hide Navigation Objects...


(Ex : Hiding Address Navigation from CRM Page )

Xrm.Page.ui.navigation.items.get("navAddresses").setVisible(false);

To hide the navigation items, we need the ID of the particular item which we can take with the help of Developer Tools.

How to use Developer Tools.
 

Sample Scenario: I need my custom entity page to hide the Activities (Navigation) after the record is saved.

Step 1:  Write a JavaScript function











Step 2: Attach this function in Form Properties -> Onsave







Step 3 : Do “Save” and “Publish”.
While Opening the Form
You can see “Activities” in Navigation.









After Saving the form, our function fires and hiding the “Activities”.



Note : Working on DOM is not supported by Microsoft. So document.all will not be supported by microsoft from next release. Check this info here                                                     

Thursday, 27 June 2013

MSCRM 2011 - Next Update ....... Changes in the Next Major Release


Below contents are taken from msdn.


Removal of the 2007 Endpoint and Legacy Features


The 2007 service endpoint was deprecated in the Microsoft Dynamics CRM 2011 release. Extensions that use the 2007 endpoint will not be supported and will not work in the next major release of Microsoft Dynamics CRM. Note the following more detailed information: 

Microsoft Dynamics CRM Online customers using the Microsoft account identity provider can continue to use extensions that require the 2007 endpoint after upgrade. However, prior to the transition of your organization to Microsoft online services (MOS), you will need to upgrade or remove those extensions that require the 2007 endpoint. 

  • Microsoft Dynamics CRM Online customers using the Microsoft online services (MOS) identity provider will see no change in service. The 2007 endpoint has not been supported in organizations using the MOS identity provider.

  • When Microsoft Dynamics CRM 2011 on-premises and IFD customers try to upgrade their server to the next major release of Microsoft Dynamics CRM, the upgrade process will detect extensions that are using the 2007 endpoint or legacy Microsoft Dynamics CRM 4.0 features. If any of these extensions are found, the Environmental Diagnostic Wizard will report an error and you will not be able to continue the upgrade until those extensions are removed or upgraded to use the 2011 endpoint.   

The following legacy Microsoft Dynamics CRM 4.0 features will be removed or will no longer be supported in the next major product release:

Ø  CRM 4.0 ISV folder support for custom web applications

Ø  Microsoft Dynamics CRM 4.0 plug-ins

Ø  Microsoft Dynamics client-side scripting

Ø  Microsoft Dynamics CRM 4.0 custom workflow activities

In addition, the Solution Down Level tool will be removed from the Bin folder of the SDK package and no longer be available. Due to improvements to the solution framework this tool is no longer needed.

Removal of JavaScript Form Scripting Support for Microsoft Dynamics CRM 4.0 Objects and Functions

Microsoft Dynamics CRM 4.0 exposed global functions and form objects to form scripting with JavaScript. These scripting objects and functions were deprecated in the Microsoft Dynamics CRM 2011 release and will be removed in the next major release. All form scripts for the next release should use the Xrm.Page and Xrm.Utility object models.
Changes to the Document Object Model (DOM)

The next release of Microsoft Dynamics CRM will make many changes in the Document Object Model (DOM). Writing JavaScript code that modifies the DOM is not supported and you should expect that any scripts written using Microsoft Dynamics CRM application page DOM elements will break.

Removal of Some Ribbon Controls

The following ribbon controls are no longer supported and will not work in the next major release:

<ColorPicker> (RibbonDiffXml)

<ComboBox> (RibbonDiffXml)

<DropDown> (RibbonDiffXml)

If you have used the DropDown control you should convert it to use the FlyoutAnchor control instead.

<Gallery> (RibbonDiffXml)

<GalleryButton> (RibbonDiffXml)

<InsertTable> (RibbonDiffXml)

<MRUSplitButton> (RibbonDiffXml)

If you have used the MRUSplitButton control you should convert it to use the SplitButton control instead.

<TextBox> (RibbonDiffXml)  

Microsoft Lync Presence Not Supported

Microsoft Lync presence will not be supported on the updated user interface entity forms and in Activity Feeds. Lync will be present in grids and subgrids

Removal of Workplace and Personalization Options for New Customers

In the next release the Workplace area in the navigation will not be present at all for new organizations. However, organizations upgrading from Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online will retain their existing workplace areas but users will no longer have the option to personalize what is displayed there within the Personal Options. Whatever personal option settings people had at the time of the upgrade will persist. The <Group> (SiteMap)IsProfile attribute will no longer allow groups to be options that users can select to include in the workplace.

Duplicate Detection during Record Create and Update Operations Not Supported

Duplicate detection during create and update operations will not be supported for Microsoft Dynamics CRM updated user interface entities. Duplicate detection of individual records won’t be supported for custom entities as well. However, to detect duplicates in bulk, you can use the BulkDetectDuplicatesRequest message and the RetrieveDuplicatesRequest message..

The following table contains a list of the updated user interface entities available in the next major release of Microsoft Dynamics CRM. These entities will not have duplicate detection support during record create or update operations:


Schema Name Display Name 
AccountAccount
AppointmentAppointment
CampaignCampaign
CampaignActivityCampaign Activity
CampaignResponseCampaign Response
CompetitorCompetitor
ContactContact
EmailEmail
FaxFax
IncidentCase
InvoiceInvoice
LeadLead
LetterLetter
ListMarketing List
OpportunityOpportunity
OpportunityProductOpportunity Product
PhoneCallPhone Call
ProductProduct
ProductPriceLevelPrice List Item
QuoteQuote
RecurringAppointmentMasterRecurring Appointment
SalesLiteratureSales Literature
SalesOrderOrder
SystemUserUser
TaskTask
TeamTeam