Q: What is CRM Service of MSCRM?
Ans: CRM Service is the main web service and it exposes Six methods such that you can write your code against CRM entities. To perform operation other than the six operations (six methods provided by mscrm) we will have to use the Execute method.
Q: What is Metadata service of MSCRM.
Ans: Dictionary meaning of the word METADATA is data about data and similarly the metadata holds the information about MSCRM means the information about the entity and attribute e.g. Display name, platform name, size of the attribute, datatype of attribute etc. If we want to access any information about any entity (Dynamic or system) we will have to make use of the Metadata service. In the database we can find the metadata table and name of these table begins with keyword Metadata.
Q: What is Discovery Service?
Ans: The Discovery service is a global service that helps the caller to detemine the correct organization and URL. Microsoft CRM server may include several servers. Each server might be dedicated to multiple organization. Each of these servers will have dedicated web-service URL for faster operations. Internally the Microsoft CRM server allocation may change so the discovery service directs the request to its corresponding web-server for further processing.
In short the Discovery service responsibility is to find the ‘CRM Service’ and ‘Metadata Service’ urls.
The discovery service returns the list of organization URLs that the current-requester (current user) belongs to. During the Outlook client configuration discovery service shows he list of organization the current-user belongs to.
This web-service is used to create authentication ticket in case of Windows live authentication.
Q. 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?
Ans – The plug-in will get loaded into the memory and will perform the operation it is needed to do
.
Q. How to add/remove columns in an entity lookup window.
Ans – 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.
Q. How to Debug the java script that we write for some validation on entity pages.
Ans – Following are the steps that are needed to be followed:
1. Enable the Debugging in the Internet Explorer – Goto Tools >> Internet Options (wizard will appear >> Click the ‘Advanced Tab’ >> Under Browsing Section uncheck the ‘Disable script debutting’ checkbox >> Click OK.
2. Edit the java script code of the Entity Page that you want to debug.
3. Put the statement ‘debugger;’ above the line where you want 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’)
4. Save and Publish corresponding customization.
5. Perform the operation that would trigger the java script written by you
6. Debugger dialog box will appear and select appropriate debugger (Visual Studio new or existing instance)
And you may start debugging from the ‘Debugger’ statement of your javasript.
Q. What is ‘Append’ and ‘Append To’ privilege in MSCRM? Give one example of it?
Ans: ‘Append’ and ‘Append To’ priviledges works together. ‘Append To’ priviledge will allow other entities to get attached with the entity. ‘Append’ priviledge will allow the entity to attach the records to the entity with ‘Append To’ privildege.
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’.
Q. How to create a Custom Entity record using SDK?
Ans: Using Dynamic Entity.
Q How to join two table using Query Expression?
Ans: 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.
Q. Can we modify the name of Root Business Unit?
Ans: No; We will have to re-install MSCRM.
Q. Suppose if I have 20 user license and I have created 20users. What will happen if I create 21st User?
Ans: The 21st User will get created in MSCRM but that user will be in disabled state.
Q. What are the maximum number of tabs allowed on a Microsoft Dynamics CRM 4.0 form?
Ans: 8
Q. How to enable/disable the form assistant? How to make sure the form assitant is expanded/cllapsed on a form?
Ans: 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”.
The interviewer will always try to figure-out whether one is comfortable with the basic concepts of Microsoft CRM (MS CRM) or not and after that; questions will be asked from your previous experience (if you have any experience in CRM). Those questions will be something like this:
Q. What was you role in the MSCRM implementation project that you have worked on?
Ans: 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 answer of this question will tigger 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.
Q. What was the most challenging task you have faced till now?
Ans: Here you should give answer that exihibit your positive attiude . e.g. for a techincal consultant it may be something like … “I was new to the suppport and during this experience i faced challenging issue related to plug-in that impoved my debugging skills. Email-to-case plug-in was really diffcult as we had to take care of so many conditions. I have learnt one thing during my previos assignment and that is ‘Never give-up'”.
Q. What was the size of the implementation? (i.e. the number of user-licenses)
Ans: I hope this post will help you to crack technical interviews on MSCRM. All the best for your interview…
Q. What is the difference between Role Based and Object Based Security Model in MSCRM?
Ans: 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.
Q. Difference between Find and Advanced Find? Which one is faster and why?
Ans: 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.
Q. Difference between CRM Discovery Service and CRM Metadata service?
Ans: 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.
Q. Difference between Plug-in and Workflows?
Ans: 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.
Q. Whenever you install MSCRM what all databases get created?
Ans: MSCRM_Config and MSCRM_orgname.
Q. Whenever you install MSCRM what all user groups get created in Active Directory?
Ans: 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.
Q. What is 'Append' and 'Append To' privilege in MSCRM? Give one example of it?
Ans: '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'.
Q. How to create a Custom Entity record using SDK?
Ans: Using Dynamic Entity in CRM 4.0 and Entity in 2011.
Q. How to join two table using Query Expression?
Ans: 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.
Q. Can we modify the name of Root Business Unit?
Ans: No, we will have to re-install MSCRM.
Q. How many Web Services are in MSCRM?
Ans: 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
Q: 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?
Ans: 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.
Q: How to add/remove columns in an entity lookup window?
Ans: 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.
Q: How to debug the java script that we write for some validation on entity pages?
Ans: 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)
Q: What are basic security permissions at domain level?
Ans: (priv reporting group, privUser group, SQL Reporting group… total 5 groups availble google it.)
Q: For plugin deployment, Difference between GAC, Database, Disk deployments?
Ans: 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
Q: How many numbers of tabs available in MS CRM Entity Form?
Ans: Officially max 8 tabs, unofficially we can do plenty (It’s not recommended by Microsoft CRM)
Q: When do we register a plugin in child pipeline? Give examples?
Ans: 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.
Q: What is early binding and late binding. How is it used in CRM?
Ans: 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.
Q: What is PrinciplalObjectAccess table why is it used?
Ans: 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.
Q: What is the use of stringmap table?
Ans: stringmap table used to store picklist value in ms crm.
Q: When can infinite loop occur in a plugin? How do you avoid infinite loops in plugin code?
Ans: Using InDepth of the context we can get the loop number.
Q: How many types of relationships are available in crm?
Ans: 3 types
1: N
N: 1
N: N
Q: What is the difference when the ownership is user vs. organization for a custom entity?
Ans: 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.
Q: What are filtered views?
Ans: 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
Q: 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?
Ans: 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.
Q: Can you call a plugin using JavaScript?
Ans: 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.
Q: In what circumstances are dialogs useful?
Ans: 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.
Q: When would you use a pre validation plugin and when would you use a post validation plugin?
Ans: 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.
Q: Why use images with plugins?
Ans: 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.
Q: Explain how solutions work, managed and unmanaged?
Ans: Unmanaged SolutioSns
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).
Q: How do you debug a plugin?
Ans: by enabling plugin profiler.
Q: What does the CRM asynchronous service do?
Ans: 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.
Q: What is an Email-Router?
Ans: 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.
Q: What is a Plug-in?
Q: Difference between plugin vs workflow (asynchronous vs synchronous)
Ans:
- 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.
Q: When will you use workflow and when will you use Plug In
Ans: 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.
Q: What is Microsoft Dynamics CRM E-mail Router
Ans: 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.
Q: Should I have Microsoft Exchange Server installed in my Active Directory domain?
Ans: 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
Q: What is a Dialog?
Ans: Dialog is a Process in Microsoft CRM which does a set of actions defined by the author of the Process and a dialog is a frontend, interactive user interface based process which takes user inputs and then does the job synchronously as defined by the Dialog author
Q: What is a Work Flow?
Ans: A workflow is a backend process to accomplish some task defined by Workflow author asynchronously
Q: Explain some new features in MS CRM 2011.
Ans: There are many new features in MS CRM 2011 like Enhanced UI,OOB Dashboard support,Auditing support,Field level security, Connections,Solution,Web resource, Role based Forms
Q: What are the different webservice available in MS CRM 2011.
Ans: MS CRM 2011 have 2
- IOrganization Service.
- IDiscovery Service.
Q: Explain IOrganization service?
Ans: The IOrganization web service returns a list of organizations that the specified user belongs to and the URL endpoint address for each organization.
Q: Explain IDiscoveryService?
Ans: IDiscoveryService is used to expose Data and Metda Data in CRM Dynamics.
Q: Which service can be used to access metadata information?
Ans: We can use IOrganization Service to fetch metadata.
Q: What are the different ways to consume MS CRM web service from client side?
Ans: We can write Rest or OData or Soap request to consume MS CRM 2011 web services.
Q: Rest Vs Soap.
Ans: SOAP: Use it to assign records, retrieve Meta data and to execute messages
REST: Use it to create, updated, delete, retrieve, associate and disassociate records.
Q: What is Solution?
Ans: Solution is a collection of MS CRM 2011 components that can be exported and imported easily from one CRM organization to another CRM organization.
Q: Difference between Managed and unmanaged solution.
Ans: Managed solution can’t be customized, but can be uninstalled easily Unmanaged solution can be customized, you can’t uninstall unmanaged solution.
Q: Is it possible to register plug-in through solution?
Ans: Yes
Q: What is field level security?
Ans: Using field level security we can hide information based on user security role in MS CRM 2011
Q: How can we use auditing in MS CRM 2011?
Ans: Auditing is a inbuilt functionality in CRM 2011, there are 3 ways that can be implemented, Because auditing is one of the most anticipated features of CRM 2011, but also one can cause undue stress (and disk usage) if misused.
- Enable Auditing by Common Entities. This allows auditing to be enabled per groups of entities with a single click. To find out what is included in the group of entities, simply hover over the group. This is by far the easiest way to control auditing over the general entities.
- Enable Auditing for all fields in the Entity. This allows auditing to be enabled or disabled for all fields in an entity.
Q: Difference between Find and Advanced Find? Which one is faster and Why?
Ans: Find performs a search on an attribute for which it is defined. Advanced Find performs a search on the conditions and the attributes for which user customizes to run. Normally Find is faster as it looks for one attribute and matches with that and returns the result whereas Advanced Find searches for all the attributes and conditions while parsing through the records
Q: What happens if 100 users submit requests to web server, does the plug-in code gets executed 100 times?
Ans: 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
Q: What are the different ways to create queries in CRM?
Ans:
Query style
|
Capabilities
|
FetchXML
|
Supports all the features of Query Expressionplus aggregates and grouping. Queries are built as XML statements.
|
Query Expression
|
Queries are built as an object model. Supports all the features in FetchXML except for aggregates and grouping.
|
LINQ
|
Queries are built using standard language, but internally use Query Expression so is limited to the features of Query Expression.
|