Friday, 30 October 2015

New features listed in Microsoft Dynamics CRM 2016

Microsoft released the preview guide for the new release this month, so we thought we would give our readers a taste of some of the upcoming features that we are most excited about! 

First off, let’s break down some of the basics. Microsoft Dynamics CRM 2016 Online is set to be released in December of this year. The name of the game with CRM 2016 is customer service. Microsoft is really focusing on helping companies “deliver customer experiences that are personalized, proactive and predictive.” The 2016 update will include Dynamics CRM; Parature, from Microsoft; Dynamics Marketing; and Microsoft Social Engagement.
Microsoft is striving to drive home four major themes: Productivity, Intelligence, Mobility and Unified Service. They are also investing heavily in Dynamics Marketing and Microsoft Social Engagement, which bodes well for all areas. Let’s dive into some of the features we are the most excited about overall! 

Online: Guided User Experience


Below are some of the enhancements that are in store for Dynamics CRM 2016:
  • New Excel Templates: Dynamics CRM 2015 allows you to conduct analysis in Excel directly within the platform, view sales data in familiar Excel templates, get analysis and insights directly into the sales process and efficiently manage sales forecasts, eliminating time and effort required to switch between applications. In addition, it allows you to export and analyze Excel data from your mobile device with Dynamics CRM 2016 apps for tablets and smartphones.
  • CRM App for Outlook: Getting key sales capabilities within the Outlook desktop and mobile browser has become more streamline. You will be able to open documents using different applications like Word or PowerPoint on various devices like iPads and smartphones. Now, you have the option to get contextual information from Dynamics CRM delivered right in your mailbox for quick and easy review.
  • Improved Outlook Experience: Harness the power of O365 Groups, in 2016, you can get easy access to Excel templates and create personalized sales documents in Word. Easily track emails and add contacts with the touch of a button from within an email. You can also generate new records to track emails through a web browser on a PC, or a mobile browser on a smart phone.
  • Enhanced Mobile Experience: Full offline capabilities are now available for your sales and service professionals on smart phones and tablets across all major operating systems. Quickly complete sales related activities while on the go and streamline important deals, accounts and activities with verbal instruction to Cortana.
  • SMS Marketing: Build your sales pipeline and chart out your marketing activities, from planning, and execution to measuring your marketing performance. You’ll be able to create powerful SMS campaigns and integrate them with your multi-channel campaigns. Easily configure inbound SMS campaigns, send outgoing promotional SMS messages and maintain a database of your marketing contacts.
  • Cloud Enhancements: Discover information that’s most relevant and interesting to you. Track documents wherever they are stored (via OneDrive or O365). You will also be able to get a list of trending documents from Delve inside CRM. View a consolidated set of documents across SharePoint, OneDrive for Business and O365 groups. Discover information that can help you with your current opportunities or accounts.
  • Cortana Integration: Dynamics CRM 2016 embeds various sales activities, accounts and opportunities into Cortana to provide the most relevant information to your sales team. Get access to advanced data management and advanced analytics capabilities and improve your customer service with the Cortana Analytics Suite.
  •  
    Sales: Cortana Integration
  • Improved Document Generation: Build personalized sales documents with Document Generation using pre-defined Word and Excel templates with one click. Ultimately, saving you time in building documents. Automatically have CRM data from account summaries, quotes and invoices, and product sheets extracted.
  • Enriched Data and Analytics: Turn business critical data into intelligent action and achieve elevated business transformation. Obtain intelligent product suggestions for cross-selling and recommend solutions to solve customer service issues. You will also be able to gain insights into your business and efficiently predict customer needs with Azure Machine learning.
  • Microsoft Social Engagement: Evaluate and drive social engagement within Dynamics CRM 2016. Easily pinpoint leads from social media and understand social buzz around a product. You’ll instantly gain access to powerful social tools and connect with customers, partners and prospects on various social media sites. Obtain social insights about your brand and get a true understanding of your position in the industry.
    Social: Social Listening and Social Analytics

Superior Customer Engagement
Superior customer engagement is the principal goal of Dynamics CRM 2016. By delivering end-to-end customer solutions across field service, assisted service and self-service, Dynamics CRM 2016 drives its entire focus on delivering remarkable customer experiences. Reap benefits of productivity and intelligence through a single platform to personalize experiences and have proactive and contextual interactions with customers to identify and meet their distinct needs.

Wednesday, 28 October 2015

Saturday, 17 October 2015

Learn Microsoft Dynamics CRM Step By Step


Table of Contents

Call external WCF service into Plugin or Workflow

Since custom workflows and plugins are essentially class libraries, there is no associated config file which can hold the binding details of the WCF service. So, to consume a WCF service, a proxy file needs to be generated using svcutil.exe. This command needs to executed from the command prompt. Now to generate the proxy file, navigate to the location of the svcutil.exe on the machine and execute the following:

svcutil.exe /language:cs /out:proxy.cs /config:app.config http://server:port/servicename.svc

A proxy.cs file is generated at the location of the svcutil.exe. This proxy.cs needs to be included in the workflow or plugin solution.

The binding for the WCF serviceshould be set in the code as follows:

BasicHttpBinding myBinding = new BasicHttpBinding();
myBinding.Name = "<Give a Binding Name here>";
myBinding.Security.Mode = BasicHttpSecurityMode.None;
myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None;
myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None;
myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;
EndpointAddress endPointAddress = new EndpointAddress(" http://server:port/servicename.svc");
WCFClient client = new WCFClient(myBinding, endPointAddress);
Theclient’ object will now be able to access the WCF service methods for e.g. client.insertDetails("Parameter_1", " Parameter_2");

Mostly asked interview questions with answers on MS Dynamics CRM Part 3

1)  What is a Plug-in?
        
            A plug-in is custom business logic that you can integrate with Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online to modify or augment the standard behavior of the platform. Plug-ins are event handlers since they are registered to execute in response to a particular event being fired by the platform.

2) What is a workflow?

             Workflow enables automation of business processes during which documents, information, or tasks are passed from one party to another and actions are performed according to a set of rules. Workflow provides many out-of-the-box components that business users and administrators can use to model their business processes. Microsoft Dynamics CRM offers developers a new mechanism to extend and customize the standard behavior to achieve the functionality that their business applications require.

3) Difference between CRM 2011 Plug-In and Workflow

Criteria
Plug-in
Workflow
Execution before or after the core platform operation (Create, Update, Delete, and so on)
Executes immediately before or after the core operation (synchronous).Can also be queued to execute after the core operation (asynchronous).
Queued to execute after the core operation (always asynchronous).
Performance impact on the server
Synchronous plug-ins can increase the platform’s response time because they are part of the main platform processing.Asynchronous plug-ins have less impact on server response time because the code is run in a different process.
Less impact on server response time because the code is run in a different process.
Security restrictions
To register a plug-in with the platform requires a System Admin or System Customizer security role and membership in the Deployment Administrator group.
Users can interactively create workflows in the Web application.However, to register a custom workflow activity, the deploying user must have the same security roles as those required for registering plug-ins.
Microsoft Dynamics CRM version (SKU) support
Supported in Microsoft Dynamics CRM Online when registered in the sandbox. May be supported in partner-hosted installations at the discretion of the partner.
Workflows without custom workflow activities are supported by all product versions. Custom workflow activities are not supported on Microsoft Dynamics CRM Online.
Length of processing time
A plug-in registered for synchronous or asynchronous execution is restricted to complete its execution within a 2 minute time limit. 
Works well for either short or long processes.

Works when the Microsoft Dynamics CRM for Outlook client is offline
Both online and offline are supported.
Workflows do not execute when offline.
Process and data persistence
Plug-ins execute to completion. Plug-ins must be written to be stateless where no in-memory data is persisted.
Workflows can be paused, postponed, canceled, and resumed through SDK calls or by the user through the Web application. The state of the workflow is automatically saved before it is paused or postponed.
Impersonation
Plug-ins can perform data operations on behalf of another system user.
Workflows cannot use impersonation.

4)  Difference between plugin vs workflow (asynchronous vs synchronous)

  •  Workflows and by extension, custom workflow activities, execute totally asynchronously. 
  •  Plugins can execute both asynchronously and synchronously.
  • Workflows can be manually executed, or automatically triggered by selected events. 
  • Workflows can be limited to automatically execute within specific organizational scopes (ie. Org, BU, Parent and Child BUs, or for the Owner only). 
  •  Plugins are always triggered by the messages to which they're subscribed, though some Messages allow limiting  execution based on whether certain attributes have been passed into the Message.
  • Workflows can be turned  off (by unpublishing).  Plugins are always on.  Custom workflow activities can be used in many Workflows.  
  • Workflows can be developed through the Workflow design interface. 
  •  Plugins must be developed in Visual Studio.Workflows do not require compiling (though custom workflow activities do). 
  •  Plugins and custom workflow activities must be compiled and deployed through processes external to CRM.
      In short: though only asynchronous in nature, Workflows allow an unimpeachable degree of flexibility and ease of configuration which Plugins do not afford, and their administration can be granted to power users of CRM without necessary access to the server or platform code.  Plugins offer the highest degree of security and performance and surpass Workflows in capability and ability to augment platform operations.
When speed of execution, security of process, and validity of data are integral, I choose Plugins.  When flexibility, functionality reuse, and optional user involvement are integral, I choose Workflows.
 
5) When will you use workflow and when will you use Plug In.?

           With the CRM 4.0 and 2011 enhancements to the plug-in and workflow engine as well as the introduction of the web based workflow designer I've seen many CRM developers asking the same question: When should I use workflow vs. plug-ins?   The answer is “depends”; the right approach is determined by the characteristics of the task that you are trying to accomplish.  

The following matrix gives you my take on this:

Requirement
Plug-in
Workflow
Needs a synchronous action to happen before or after an event occurs
X
The same piece of logic will be executed for different events and possibly on different entities
X
x
The logic needs to be executed while offline
X
Needs elevation of privileges (impersonation)
X
Needs to execute on events other than assign, create, update, setstate
X
The process/logic may take a long time to complete or will be a persistent process (multiple long running steps)
x
Needs an asynchronous action
x
x
End users will need to modify the process logic
x
Child sub processes will be triggered
x



6) What is Microsoft Dynamics CRM E-mail Router?

        Ms CRM E-mail Router is a software component that creates an interface between a Microsoft Dynamics CRM deployment and the organization's messaging system. The E-mail Router routes qualified email messages to the Microsoft Dynamics CRM system as email activities and fully integrates with different messaging systems, such as Microsoft Exchange Server, Microsoft Exchange Online, POP3, and SMTP. The E-mail Router includes the functionality for sending email through any desired SMTP provider and for receiving email from Microsoft Exchange Server or from a POP3 server. Additionally, the Forward Mailbox feature remains available.

7) Should I have Microsoft Exchange Server installed in my Active Directory domain?
        
         You do not need to have Microsoft Exchange Server installed to send and to receive email messages from Microsoft Dynamics CRM. You can use  external or in-house SMTP and POP3 services to send and to receive email messages

Mostly asked interview questions with answers on MS Dynamics CRM Part 2

Following are the mostly asked questions in Wipro, Infosys, TCS, Accenture and HCL

1.What are the new type of workflows introduced in MS CRM2013.
 Answer: a.Action.  b.Business Process workflow.

2.What is the Business Rules in Ms CRM?

3.Business Rules,JavaScript Method which one trigger the first?
Answer: javascript method is clientside program and syncronous and business rules are asynchronous process so javascrit execute first.

4.What is the realtime workflow ?

5.Realtime workflow trigger first or plugin will trigger first?
 Answer: By default plugin will trigger first.

6.How should is change execution order between synchronous workflow and Plugin?
 Answer: we have tool synchronous event order in ToolBox by using we can able to update Rank of workflow.

MS CRM Interview Experience NTT Data

Let me share my ms crm interview experience with NTT Data.

1.what is the sales Territories in CRM 2011 ?
2.Multiple Inheritance in .net ?
3.left outer joins and right inner joins  differences ?
4.what are the sql server parameters ?
5.when creating a custom entities what are the tables will created for that entity ?
6.what is the difference b/w Append and Append To ?
7. How many Max No.of  loops for  plugins is stored in database ?
8.what is the diff b/w Ms CRM 4.0 and 2011 ?
9.what is event pipe line Execution in CRM ?
10.what are the databases created when Ms Dynamics CRM installed ?
11.if add the new organization to already existing system what are the databases will create ?
12.how you can cosume the external wcf services in plugins or custom workflows ?
13.what is the diff  b/w soap and rest ?
14.what is websources?
15. we can search the sharepoint documents in CRM ?


Read more about NTT Data

Mostly asked interview questions with answers on MS Dynamics CRM Part 1

1.What is the difference between Role Based and Object Based Security Model in MSCRM?
      Code based security is entirely coded in the application itself. Role based security uses one of the authentication/authorization mechanisms of the application server. The fundamental concept in role-based security is that of privilege, defined at design time, on a system-wide basis. Each user has a set of privileges (there are well over a hundred privileges) that are enabled for that user. However, Policies and Roles grant privileges and simplify the process.
       The other form of security applies to individual instances of objects. There is a fundamental difference between an access right and a privilege: an access right is a right granted to a user on an object), but a privilege is a right granted to a user on a class of objects. Access rights apply only after privileges have taken effect. In other words, if a user does not have the privilege to read accounts, the user will not be able to read any account, whether or not it has been shared.

2.Difference between Find and Advanced Find? Which one is faster and why?
        Find perform a search on an attribute for which it is defined. Advanced Find perform search on the conditions and the attributes for which user customizes or runs it. Normal Find in faster as it looks for one attributes and matches with that and returns the result whereas Advanced Find searches for all the attributes and conditions while parsing through the records.
         Find is applicable on only active records and it finds only on 2 or 3 column which we have defined in the find view and even it returns any those column which is there in the view but advanced find is applicable to all the records and it finds all the columns and even it returns all the column and filter criteria can be on any column and most important - find filters on just one condition but advanced find filters on multiple condition at one time.. Find is faster than Advanced Find.

3.Difference between CRM Discovery Service and CRM Metadata service?
         CRM service - when we need ORG related information like ORG name, Properties, CRM service path for this ORG -- then we use CRM discovery service. This is only to get the ORG related information Metadata service - we use this when we need to interact with the CRM records – create, update or delete anything-- it is very specific to the CRM records. When we need to interact with the CRM entity and attribute - like create an entity (not record) or attribute -- add a value to pick list-- retrieve the pick list value retrieve the entity properties-- attribute property and all we need Meta data service.

4.Difference between Plug-in and Workflows?
         Requirement Plug-in Workflow Needs a synchronous action to happen before or after an event occurs. The same piece of logic will be executed for different events and possibly on different entities. The logic needs to be executed while offline. Needs elevation of privileges (impersonation) Needs to execute on events other than assign, create, update, set state The process/logic may take a long time to complete or will be a persistent process (multiple long running steps). Need an asynchronous action. End users will need to modify the process logic Child sub processes will be triggered.

5.Whenever you install MSCRM what all databases get created?
     MSCRM_Config and MSCRM_orgname.

6.Whenever you install MSCRM what all user groups get created in Active Directory?
      User Group All Microsoft CRM. This group is updated automatically as users are added and removed from Microsoft CRM. ReportingGroupA group contains all users within Microsoft CRM. This group is updated as users are added to Microsoft CRM. Users in this group have read-only access to the filtered views in the Microsoft CRM database. PrivUserGroupPrivileged Microsoft CRM user group for special administrative functions.  SQLAccessGroupA group that contains Microsoft CRM ASP.NET account and other service accounts. Members in this group have full access to the Microsoft CRM database and this group is used by the Microsoft CRM platform layer. End users should never be added to this group.

7.What is 'Append' and 'Append To' privilege in MSCRM? Give one example of it?
       'Append' and 'Append To' priviledges works together. 'Append To' privilege will allow other entities to get attached with the entity. 'Append' privilege will allow the entity to attach the records to the entity with 'Append To' privilege. Let us understand this with simple example: Let us say that you want to attach a note to a case then note entity should have 'Append' access right and case entity should have 'Append To' access right.Let us take one more example to understand this. Suppose you have two custom entities called 'TestCustomEntity1' and 'TestCustomEntity2'. You want to attach the 'TestCustomeEntity2' records to 'TestCustomEntity1'records. For this you need to have 'Append' access right on 'TestCustomEntity1' entity and 'Append To' access right on 'TestCustomEntity2'.Now guess will I be able to attach the records? Answer is " NO" because we need to create a 1:N relationship between 'TestCustomEntity1' and 'TestCustomEntity2'. Now the user who has above mentioned access right in his security role will only be able to add 'TestCustomEntity2' records to 'TestCustomEntity1'.

8.How to create a Custom Entity record using SDK?
Using Dynamic Entity in CRM 4.0 and Entity in 2011.

9.How to join two table using Query Expression?
         Using Linked entity. You should always try to minimize the number of SWS calls that we make in the database. Often during code review it is explored that the number of Microsoft CRM web-service could have been reduced by making use of the Linked-entity concept. So we should always look for the opportunity to minimize the effort.

10.Can we modify the name of Root Business Unit?
      No, we will have to re-install MSCRM.

11.Suppose if I have 20 user license and I have created 20users. What will happen if I create 21st User?
      The 21st User will get created in MSCRM but that user will be in disabled state.

12.How to enable/disable the form assistant? How to make sure the form assistant is expanded/collapsed on a form?
      Navigate to Customization >> Open the Entity >> Open Forms and Views >> Open Form >> Select Form Properties >> Open Display Tab >> Check/Uncheck the “Enable the Form Assistant" and “Expanded by Default".

13.What was your role in the MSCRM implementation project that you have worked on?
        You should be honest while giving answer to this question and should give a brief overview of the project and your role. This is very important question because the answers of this question will trigger so many questions. You should highlight the key skills you have; this way you will divert the attention of the interviewer to your key skills and try not to expose the area in which you are less confident.

14.What was the most challenging task you have faced till now?
          Here you should give answer that exhibits your positive attitude. E.g. for a technical consultant it may be something like ... “I was new to the support and during this experience i faced challenging issue related to plug-in that improved my debugging skills. Email-to-case plug-in was really difficult as we had to take care of so many conditions. I have learnt one thing during my previous assignment and that is 'Never give-up'".

15.How is CRM changing and what does the business owner need to be aware of? 
       At the heart of CRM is the benefit of having the customer record at the center of the data universe rather than multiple galaxies of transactions held in separate, transaction-specific apps. So the innovation lies in new and improved visibility for putting information to use in intelligent decision making. Companies that used to serve 100 are serving 10,000, and with this kind of scaling, better top-level tools and custom dashboards are where I see CRM continuing to morph and advance.

16.Who are the newcomers to the CRM landscape? 
It is such a hot area right now, there are literally hundreds. But two I have been following are Zoho and HighRise. Both are niche vendors that have garnered great contact lists with their other products and created relatively simple implementations for their clients and others. They both illustrate the fact that CRM is no longer esoteric — it is going mainstream, which is a great thing for business, particularly customer service and data security.

What exactly should I be expecting CRM to do for me? 
This is an important question, as there are many misconceptions about software and CRM in particular. Besides some fundamentals, like data security and access and ease of use, CRM will primarily help you do what you do anyway, but move it to the next level. If your main focus is customer service, CRM will help you monitor, deliver, and measure your effectiveness. If your goal is a flat organization where the right hand knows immediately what the left hand is doing, CRM will help you be informed about the customer’s world and not just what relates to your department or team.

What are your expectations for CRM in the next five years?
First, I expect CRM to become much more commonplace. Players like Zoho and 37signals (Highrise) are knocking down barriers to entry. I also expect to see some consolidation. I think the bigger players, like Sales Force, Microsoft, and SAP, will buy up some of their smaller rivals to build into their suites and migrate their user bases. As long as the acquiring provider keeps the connections intact during the migration and meets a similar price point, it will be a win-win. I also think we’ll be seeing more mobile-friendly applications, like Sales-force’s Visual-force and NetSuite’s iPhone, to maximize data access and timeliness.

What are the most common mistakes you see companies make with CRM? 
Many organizations use Outlook BCM or Excel for managing their contacts, which offer no planning or setup process — just create a column or type in a field and get started. This causes problems when information is related and the flexible aspects of the previous solution are overlooked. There are real benefits that won’t happen without understanding the new vernacular; the specific way the new solution describes the data. For example, an “account” in Sales-force may not be the same as an “account” in High-rise. In fact, it might have another name altogether, such as “company.” Understanding how the particular vendor uses “leads” or “opportunities” will help to avoid a great deal of frustration.

What advantages might CRM have for specific verticals? 
The answer to this question is not if but how much. Since CRM helps you do what you do better, if you are in a professional services company with long sales cycles, project terms, and frequent interactions and touch points, CRM will be exponentially more valuable to you. So service businesses, like lawyers, consultants, and accountants, are ripe for CRM but often have a technological aversion and a strong status quo to maintain.

Does CRM fall more to sales or marketing in most organizations?
In my experience, marketing is somewhat of a new concept in CRM. Sales are definitely involved, but most often it is operations leading the charge.

How many Web Services are in MSCRM?
1.    Deployment Web Service
Using this service we can
·         Create or import organizations
·         Enable and Disable organizations
·         Add deployment administrators
·         Configure IFD and Claims-based authentication

2. Discovery Web service
Using this service we can
·         Identify the organization information available in a deployment

3. IOrganization Service
·         In CRM 4.0 we had the CrmService & CrmMetadataService to access data & metadata.
·         In CRM 2011, These are combined in single IOrganization service endpoint that includes both data and metadata

What was the size of the implementation? 
The number of user-licenses.

Suppose I want to migrate Microsoft CRM implementation from one environment to other environment. Let us assume that there a published workflow for account entity. Now in normal usage there will be few accounts-records for which the workflow will be waiting/Waiting for Resource/Failed/Succeeded state. So what should be our strategy for the migration? What will happen to the records which are in waiting state and what will happen to the records which are in-progress?

Suppose there is a plug-in registered for account entity. When a user submits a request (e.g. account creation etc.) to the web-server then what will happen in the server?
The plug-in will get loaded into the memory and will perform the operation it is needed to do.

Now what will happen if 100 users will submit the request to the web-server? The plug-in code will get loaded into the memory for 100 times?
Answer is NO. Noticeable point over here is that the Microsoft CRM is a managed application and runs under .Net framework. So whenever the first request arrives at the web-server the plug-in code is loaded into the memory and will perform its operation and subsequently the same plug-in code will serve the process for other user as well. So this way it saves the amount of time required to load the plug-in into the memory. If the plug-in code is not being used for long then the Garbage collector will identify it and will sweep the plug-in out from the memory.

How to add/remove columns in an entity lookup window?
Go to Settings >> Customization >> Select the entity >> Click ‘Forms and Views in the Left Nav Pane” >> Double click the ‘Entity Lookup View’ >> Dialog box appears that contains the Add/Remove and Sorting options for a lookup view.

How to debug the java script that we write for some validation on entity pages?
Following are the steps that are needed to be followed:
·          Enable the Debugging in the Internet Explorer – Go to Tools >> Internet Options (wizard will appear >> Click the ‘Advanced Tab’ >> Under Browsing Section uncheck the ‘Disable script debugging’ checkbox >> Click OK.
·         Edit the java script code of the Entity Page that you want to debug.
·         Put the statement ‘debugger;’ above the line where you want to do the debugging.

e.g. suppose my java-script show ‘Hello World’ message and i want to debug this then following is the way I am going to add script:
debugger;
alert(‘Hello World’)
·         Save and Publish corresponding customization.
·         Perform the operation that would trigger the java script written by you
·         Debugger dialog box will appear and select appropriate debugger (Visual Studio new or existing instance)

What are basic security permissions at domain level? 
 (priv reporting group, privUser group, SQL Reporting group… total 5 groups availble google it.)

For plugin deployment, Difference between GAC, Database, Disk deployments?

                  GAC Deployment
1. Does not support CRM 2011 online deployments
2. You can refer external DLL assemblies used in Plugin only if they are registered in GAC

Database Deployment
1. Supports CRM online 2011 deployment
2. You can refer external DLL assemblies used in Plugin only if they are registered in GAC

Disk deployments
1. Does not support CRM 2011 online deployments
2. You can refer external DLL assemblies from the disk and from GAC

 Calling Dynamic Entities (knowledge on Moniker, Input Parameters, Output Parameters, and Meta Services)?

 Difference between GUID and Key, Lookup and String?

 Knowledge on Java Script and SOAP web services, most important how to call XmlHttpRequest?

How many numbers of tabs available in MS CRM Entity Form? 
Officially max 8 tabs, unofficially we can do plenty (It’s not recommended by Microsoft CRM)

 When do we register a plugin in child pipeline? Give examples? 
Quote can be created in 2 ways, through the home screen OR the opportunity screen. If you create it from the latter, it will run on the child pipeline and you will find that your plugin will not work.

 What is early binding and late binding. How is it used in CRM? 
Early Binding:
Compiler bind the objects to methods at the compile time. This is called early binding or static binding. Function overloading is example for early binding.

Late Binding:
Compiler bind the objects to methods at the runtime. This is called late binding or dynamic binding. Function overriding is example for late binding.

 What is PrinciplalObjectAccess table why is it used? 
The POA table is used to provide access to specific records for CRM users, and each record in the POA table represents one CRM object that is    related to one CRM user.  Records created in the POA table come from one of four ways:
·         Share reassigned records with original owner:  CRM System Settings
o    If this is set to Yes, then records would be added to the POA table whenever an assign takes place.  These records will have a value in the AccessRightsMask colum of the POA table.
·         Direct sharing:  Actions – Sharing
o    When users explicitly share a record to another user, a record would be created in the POA table.  These records will have a value in the AccessRightsMask colum of the POA table.
·         Reparent Setting:  Relationship Behavior
o    Each entity has relationships with other entities (ex. Account to Case).  By default, the Reparent option is set to Cascade All.  With this setting, sub records would be shared to the owner of the parent record.  For example:  Let’s say that User1 owns Account1.  User2 has access to Account1 and creates a case underneath Account1.  With the out of the box Reparent options, a record would be created in the POA table that would give User1 access to the newly created case.  These records will have a value in the InheritedAccessRightsMask colum of the POA table.
·         Indirect Sharing: When sharing occurs through a direct share, assignment, or parenting, if the relationship is set up to cascade the share to child records, additional records will be created in the POA table in order to give proper permissions to the new user for the relevant child records.  These records will have a value in the InheritedAccessRightsMask colum of the POA table.

 What is the use of stringmap table? 
stringmap table used to store picklist value in ms crm.

 How do you set a recurring activity in CRM?

 When can infinite loop occur in a plugin? How do you avoid infinite loops in plugin code? 
Using InDepth of the context we can get the loop number.

 How do you avoid sql deadlock?

 How many types of relationships are available in crm?

3 types
1: N
N: 1
N: N

 What is the difference when the ownership is user vs. organization for a custom entity? 
Organization-owned entities typically contain data involving something that belongs to or that can be viewed by the whole organization. Organization-owned entities cannot be assigned or shared. For example, products are owned by the organization.
User-owned entities are associated with a user. User-owned entities typically contain data that relates to customers, such as accounts or contacts. Security can be defined according the business unit for the user.

 What are filtered views? 
SQL database views, called "filtered views," are provided with the Microsoft CRM database to enable access to business data according to the user's Microsoft CRM security role. When a user runs a report that obtains data from filtered views, the user's Microsoft CRM security role determines the data to be included in the report. Data in filtered views is restricted at three levels: the organization, the business unit, and the owner. Filtered views exist for all Microsoft CRM business objects (entities).

Your reports should not read data directly from the Microsoft CRM database tables. Instead, use the filtered views. The following sample SQL code returns all columns from the filtered view for an Account entity:
SELECT * FROM dbo.FilteredAccount

If you delete a record from UI, what happens in database? Can you bring the record back?OR, what is deletion service? Can you change its schedule?
In Microsoft Dynamics CRM, deleting an entity by using the Web application or through SDK Web service calls usually results in a "soft delete" where the entity is not immediately deleted from the database. Instead, the entity is marked for deletion later. The platform marks the entity for deletion by setting the entity's DeletionStateCode attribute to 2. Entities with a DeletionStateCode attribute set to 2 are filtered out from all data views in the Web application and are not accessible using the SDK.
These marked entities are physically deleted from the database by the Deletion Service. The Deletion Service is an asynchronous operation that is based on a table named ScaleGroupOrganizationMaintenanceJobs in the MSCRM_CONFIG database of Microsoft Dynamics CRM. By default, the frequency of the Deletion Service job execution is set to once a day. You can use the Scale Group Job Editor tool to change the execution frequency of the Deletion Service. You can find the tool on the Web at

 http://code.msdn.microsoft.com/ScaleGroupJobEditor.

 How is LINQ used in CRM 2011?

How would you automatically create cases from?

 Can you call a plugin using JavaScript? 
You can accomplish this by creating a custom entity you want to use as a trigger.  You attach your plugin to that entity either at the create message or the update message (requires you to have one record created that you update).
Now, in Jscript, when you want to call the entity all you have to do is call the update or create for that custom entity (depending on which message you attached your plugin to).  This way you can fire your plugin from anywhere you can access jscript.

 In what circumstances are dialogs useful?
Dialogs are the synchronous/interactive processes in Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online that collect and process information by using step-by-step scripts to direct users through a process. For example, you can create dialogs to act as a guide for your service representatives for case resolution and case escalation. Similarly, you can create dialogs for standardizing sales processes such as opportunity qualification and lead scoring.
Every time you run a dialog in Microsoft Dynamics CRM, a ProcessSession (dialog session) record is created. The dialog session stores the session log about the dialog process that was run.

What limitations does the sandbox have on plugins in the cloud?

 How do you configure SharePoint to work with CRM 2011?

When would you use a pre validation plugin and when would you use a post validation plugin? 
Pre-validation:- Stage in the pipeline for plug-ins that are to execute before the main system operation. Plug-ins registered in this stage may execute outside the database transaction.

Pre-operation:- Stage in the pipeline for plug-ins that are to execute before the main system operation. Plug-ins registered in this stage are executed within the database transaction.

Post-operation:- Stage in the pipeline for plug-ins which are to execute after the main operation. Plug-ins registered in this stage are executed within the database transaction.

Post-operation:- Stage in the pipeline for plug-ins which are to execute after the main operation. Plug-ins registered in this stage may execute outside the database transaction. This stage only supports Microsoft Dynamics CRM 4.0 based plug-ins.

Why use images with plugins?
Answer: Images are a way to pass the image of the record that is currently being worked upon prior or after the action has been performed. In general it could be said, it is the image of the record as is available in the SQL backend.

Two types of Images are supported, Pre-Image and Post Image.

In case of Pre-image, you get the image of the record as is stored in the SQL database before the CRM Platform action has been performed.
Post Image, returns the image of the record after the CRM Platform action has been performed.

How would you Auto number functionality to CRM?

 Explain how solutions work, managed and unmanaged?
Unmanaged Solutions
All solutions start out as Unmanaged.  When it is in the unmanaged state, you can add, remove, update, test any of the components of the solution.  You can delete components of your unmanaged solutions, while leaving it available for use in the rest of the system.   Some on the MS CRM dev team have likened this to your 'source' code of your system.  The great thing about an Unmanaged Solution is that during development, you can create restrictions (like 'not customizable') on the components as they evolve.
Managed Solutions
When your unmanaged solution is ready for the show, you simply export it to 'Managed'.   You could think of this as 'compiling' you code.   You set the restrictions (i.e. prevent customizations on certain components) and the end user lives by those rules.  But remember, they can still customize the components of the solution that are unrestricted.  You cannot add or remove components of a solution, even if the component is unmanaged.
Once you have packaged the Managed Solution, it can be installed into another organization.  They can also be deployed across multiple deployment types (Online, Partner Hosted, On-Premise) and all CRM Clients (web, Outlook, Mobile Express, and Offline via Outlook Client).


 How do you debug a plugin? 
  by enabling plugin profiler.

What does the CRM asynchronous service do? 
The asynchronous service executes long-running operations independent of the main Microsoft Dynamics CRM system process. This results in improved overall system performance and improved scalability.
The asynchronous service features a managed queue for the execution of asynchronous registered plug-ins, workflows, and operations such as bulk mail, bulk import, and campaign activity propagation. These operations are registered with the asynchronous service and executed later when the service processes its queue. All workflows are executed by the asynchronous service.

What is an Email-Router? 
      Microsoft Dynamics CRM E-mail Router is a software component that creates an interface between a Microsoft Dynamics CRM deployment and the organization's messaging system. The E-mail Router routes qualified email messages to the Microsoft Dynamics CRM system as email activities and fully integrates with different messaging systems, such as Microsoft Exchange Server, Microsoft Exchange Online, POP3, and SMTP. The E-mail Router includes the functionality for sending email through any desired SMTP provider and for receiving email from Microsoft Exchange Server or from a POP3 server. Additionally, the Forward Mailbox feature remains available.