Showing posts with label xRM. Show all posts
Showing posts with label xRM. Show all posts

Saturday, November 5, 2016

Build a custom XRM app for tablets in about an hour


I am currently working on a project implementing Dynamics CRM Field Service which is bundled with Resco Mobile client. I am impressed with the capabilities of Resco Mobile solution, especially its powerful Form Rules that go far beyond what Dynamics CRM Business Rules offer.

With the recent release of Dynamics 365, I wondered if I could create an application for tablets using out of the box customization tools that come with the product rather than having to purchase an add-on.

I recently had window shutters installed at my home and noticed that the salesperson had used a tablet (I mean a yellow paper kind) to prepare an estimate. How about building an application for him and other sales professionals at his company to track prospects and prepare an estimate more efficiently?
I started by making a list of requirements for this application.
  1. Ability to track prospects, customers and related data such as email, phone number and address
  2. Ability to view customer’s address on the map and get driving directions
  3. Ability to create estimates and save them for further actions and follow up
  4. Ability to create multiple lines within an estimate with one line for each window
  5. Ability to enter dimensions (width and height) for each window, select the type of shutter for each window and price the line automatically
  6. Ability to calculate the estimated total automatically
  7. Ability to get customer’s signature on the tablet acknowledging that he/she has reviewed the estimate
  8. Ability to print the estimate and email it to the customer
  9. Ability to use the application online or offline
  10. Initially the application would be rolled out to field salespersons using Windows 10 tablets. However, in the future, we need an ability to use the application on Android tablets and iPads.
Once I had the basic requirements, I went to work. Here are a few design considerations I used for the application.
  1. Naturally, I decided to use the Contact entity to track prospects and the Opportunity entity for creating and storing estimates.
  2. Customized the Opportunity form to suit application needs.
  3. Used the standard Product Catalog to define types of shutters and created a standard price list to define the list price for each product to be used to calculate the estimated amount.
  4. Created a Business Rule to calculate Quantity = Width * Height
  5. Added the following custom fields to Opportunity Product entity and form.
    1. Window Width
    2. Window Height
    3. Window location (text field)
  6. Added a multiline text field to the Opportunity entity and form and added a Pen Control to capture customer’s signature on a tablet.
  7. Created a Word Document Template to generate the Estimate document that can be emailed to the customer as PDF using Outlook.
Here are a few screenshots of the application on Windows 10 tablet.




Notice the suggested Product from the catalog as you start typing. You can even use the wildcard to see possible matches to choose from.
Although the Contact or Opportunity form does not display the map, you can click or tap on the address on the Contact form which launches Bing Maps.




On Windows 10 tablet, you can also generate the estimate document using Word Document Template which can then be emailed using the “Send as PDF” feature of Word. Word converts the document to PDF and attaches it to the email in Outlook.
In this article, we saw how out of the box tools in Dynamics 365 together with Microsoft Office can be used to build a functional application for tablets or phones quickly and easily.

Sunday, December 20, 2015

Custom Entity or Standard Entity – that is the question

Microsoft Dynamics Platform is often referred to as xRM (where “x” in xRM can represent “anything”) because it enables us as business analysts and developers to customize the standard CRM solution to build custom line of business solutions to address specific business requirements.
When building a custom solution, you often face the question: whether to use a standard entity or to create a custom entity. Making this design decision is partly art and partly science. Also, your experience (both good and bad) from the past projects plays an important role.
In this article, I will discuss a few basic guidelines that I have used. Note that the following guidelines are based on Dynamics CRM 2015.

Native features and functionality associated with the standard entity

Are there any features and functionality associated with the standard CRM entity that you would like to leverage and that cannot be replicated without significant effort and custom development? If so, it will be in your best interest to use the standard entity. It will save you much effort in terms of development and maintenance in the long run. Also, you will be able to take advantage of future feature improvements and enhancements released by Microsoft.
Example 1: Only Accounts, Contacts and Leads can be included in a marketing list. If you plan to create marketing campaigns for companies or people in your custom solution, your best bet is to use one of these entities rather than creating a custom entity.
Example 2: If you need the standard CRM functionality of qualifying a lead and automatically creating account, contact and opportunity while onboarding a job or a project, you should consider using the Lead entity. Creating a custom entity is likely to require significant custom development and future maintenance to achieve the same results.
Example 3: Opportunities and Cases have a Customer field which can store both Accounts and Contacts. If you need this capability, you should consider using these entities in your solution. Otherwise, you will need to build this feature yourself.

Security

Are there any restrictions in terms of who can view and edit the data stored in this entity? For example, if in a solution for the insurance company, only the claims department employees can view and edit the claims data, it would make sense to create a custom entity to store claims rather than repurposing a standard entity like Case (incident). If you store claims in the Case entity and decide to use CRM for managing customer service cases either now or in the future, all users who have a “Read” permission to the Case entity can view Claims as well. You may be able to use Field Level Security to restrict certain fields from non-Claims department employees. However, this is likely to require more effort in terms of configuration, maintenance and administration.
Here’s another side note specific to custom “activities”. When you create a custom Activity entity, permissions defined for standard CRM Activities (such as email and task) would apply to this custom entity as well. If you have special security requirements for this entity, you may not want to define this as “activity”. You will have to weigh the pros and cons of each approach.

Contact entity to store “People” data

Typically you would want to use the Contact entity to store “people” or “persons” data. For example, if you are creating a solution for schools, you should first consider using the Contact entity to store profiles of parents, teachers and students. You can use Relationship Type or Contact Type field to identify the person’s role and either use separate forms or separate tabs on the same form that you can show or hide depending on the Contact Type. However, if the requirements and processes related to these Contact Types are fundamentally different, it may make sense to create separate entities to store respective profiles. One advantage of using one (Contact) entity to store all “people” is that search results within the Contacts view would include everyone matching the search criteria. Alternatively, you can train your users to use the global search feature that can include multiple entities including custom entities.
Another approach is to use the Contact entity as the base entity, create custom entities for specific Contact Types and create pseudo 1:1 relationship between the Contact entity and custom entity. Dynamics CRM does not natively support 1:1 relationship. However, you can simulate this by creating 1:N and N:1 relationships between Contact and custom entity. In our example, you will use the Contact entity to store common data such as name, address, email and phone number and create custom entities for Parent, Teacher and Student to store data specific to these Contact Types with 1:N and N:1 relationships to the Contact entity. Because CRM does not natively support 1:1 relationship, it will be your responsibility as a customizer to enforce data integrity. This approach will also enable you to configure permissions specific to Contact Type. For example, Student Administration users will be able to view and edit Student data but not Teacher data. I will write in more detail about how you can implement this solution in a later post.

Account entity to store “Company” data

On the same lines, you should consider using the Account entity to store company data including customers, vendors and business partners. This also enables you to use a lot of built-in functionality as well as standard relationships including contacts, opportunities and cases without customization. However, the same principles described earlier apply when making a decision.

Email Templates

You can create entity specific Email Templates only for certain standard entities including account, contact, lead, opportunity, quote, order, invoice, case, contract and service activity. You will have to use global templates for all other entities including custom entities you create. However, you would be able to use workflows and dialogs to create/send emails that include fields from custom entities. See the following post for details: Workaround for Email Template Limitations.

Repurposing Opportunity, Quote, Order and Case entities

If you are using Dynamics CRM to build a line of business solution that is unrelated to sales or service, it may make sense to repurpose Opportunity, Quote, Order and Case entities to take advantage of some built in features that come standard with these entities. This may save you time required for customizations and custom development. For example, you may use the Order entity to track Projects if you need to add line items to track time and material (products) used for the project. CRM also calculates the total of line items automatically.

Useful Common CRM features

There are many useful common features that you may want to leverage in your xRM solution. These features are available for both standard and custom entities. Therefore, they should not have any bearing on your decision to use one or the other. These features include:
  • Business Process Flows
  • Workflows and Dialogs
  • Notes and Attachments
  • Activities
  • Connections
  • Sending Email (including Direct Mail)
  • Mail Merge
  • Document Management
  • Access Teams
  • Queues
  • Allow Quick Create
  • Duplicate Detection
  • Auditing
  • CRM for Phones
  • CRM for Tablets
  • Reading pane in Dynamics CRM for Outlook
  • Offline capability for Dynamics CRM for Outlook
  • Timer control on entity form
I welcome your ideas and lessons you have learned from your experience on this topic from your projects.

Monday, September 22, 2008

Microsoft Dynamics CRM as a Development Platform

It is easy to customize Dynamics CRM using built-in customization tools. These customizations include adding new attributes, entities and views. However, sometimes customers are looking to automate their existing business processes or replace and enhance legacy applications using the latest technology without having to spend a fortune.

Microsoft Dynamics CRM is a sophisticated business application platform that provides the basic services required by developers and even business analysts to build upon. A wide range of applications can be created with this platform. These applications may be based on Microsoft Dynamics CRM but are not limited to CRM-type applications.

Microsoft partners and customers have taken advantage of this platform to build several industry specific solutions. These industries include education, government, financial services, manufacturing, distribution and many more.

Dynamics CRM is designed with the following goals in mind:
· Connect your company's "business model" and "software model": Dynamics CRM reflects more of the business model in the software model so that when changes occur within your organization or its business processes, the software can adapt to these changes more easily and affordably.
· Adaptive process: It enables you to customize the solution to adapt to the model of the business instead of forcing the business to adapt to a process built into the application.
· Focus on users: Users can access Dynamics CRM (including any customizations) from within Microsoft Outlook client or using the web browser. This provides the user experience that is tightly integrated with how they work today.

Customizations

Based on Microsoft CRM security roles, users, managers, system administrators, system customizers, and software developers can take advantage of the flexibility provided in Microsoft CRM to customize the application's appearance and behavior. Here are some examples of how users with different roles can customize Dynamics CRM:

End users can configure the way they view information and their personal options.

Company managers (executives, sales, marketing, customer service managers and other business managers) can customize user permissions, business unit settings, and workflow processes.

System customizers can customize the schema, including adding, modifying, renaming, or deleting entities and fields. System customizers can also modify the user interface by changing form and view content and defaults, adding or modifying reports, and changing the default filter for reports. System customizers can use the Workflow Manager tool to create workflow rules.

System administrators can do all the tasks system customizers can do, plus modify any record in Microsoft CRM.

Developers can customize and extend Microsoft CRM functionality by using the Workflow and Deployment Manager tools on the Microsoft CRM server, and by using the processes defined in the Microsoft CRM Software Development Kit.

Dynamics CRM System wide features
Dynamics CRM provides the following features and capabilities you can leverage in your application without having to build them from scratch.
· Access within Microsoft Outlook or from a web browser
· Import data using built-in data import tools in Dynamics CRM
· Integrate with other applications using web services based APIs (Application Programming Interfaces)
· Export data in various formats such as Excel (including dynamic PivotTables and worksheets), PDFs and Word documents
· Build cubes using SQL Server Analysis Services and analyze the data in Excel and other analysis tools

New Dynamics CRM 4.0 SDK features such as plug-ins and workflow assemblies make this platform even more appealing.