Showing posts with label Dynamics CRM. Show all posts
Showing posts with label Dynamics CRM. Show all posts

Saturday, May 14, 2016

Microsoft Dynamics CRM Outlook Client synchronization rules

When you are working with Microsoft Dynamics CRM and CRM Outlook Client you need to remember the following rules regarding Editing, deleting and assigning contacts:

Editing
  • When  editing contact in outlook it will immediately update the CRM contact
  • When editing contact in the CRM it will update the outlook contact in the next time the CRM and outlook sync or you can press the "Sync with CRM" button then it will sync immediately
Deleting
  • When you delete an Outlook contact than has been tracked in CRM will not delete the contact from the CRM and it wont sync back to the Outlook Client
  • When you delete a contact you own in the CRM that was previously synced to Outlook, will not delete the contact from the Outlook
Assign
  • When you assign a contact that was created in the CRM and sync to Outlook will remove the contact from the Outlook
  • When you assign a contact that was created in Outlook and tracked into the CRM will keep the contact in Outlook. note that all changes to the contact in Outlook will update the contact record in CRM and visa versa.
Fredy Opaets
Soft-Pro
Fredy@soft-pro.co.il

Thursday, May 12, 2016

Microsoft Dynamics CRM - Working offline with Dynamics CRM mobile apps

Microsoft Dynamics CRM 2016 provides you with full offline experience with mobile Dynamics CRM apps.
You can find some more information here.
In order to Configure your mobile offline synchronization for CRM for phones and tablets, please click here.
The following video will provide you a quick tour for Dynamics CRM mobile offline.
 
 
Fredy Opaets
Soft-Pro
Fredy@soft-pro.co.il

Monday, March 26, 2012

CRM 4 to CRM 2011 JavaScript Converter

Project Description
CRM 4 to CRM 2011 Javascript Converter helps convert scripts to the latest CRM 2011 Form scripting model. The converter uses an xml file that contains CRM4 and CRM5 nodes which allow the converter to find/replace
specific instances of text.

Usage
Simply paste your CRM 4 script into the left hand text area and click Convert.

Saturday, January 31, 2009

Two default views in CRM

Two default views? How to get back to one

You might come across a scenario where you see that Microsoft CRM lists two different views as the "default" for an entity (as shown in the screenshot below):



Obviously this is not the intended behavior as only one view should be listed the default. Changing the default view and re-publishing the entity with the web interface does not appear to correct this issue. While we're not 100% what causes this scenario, we have figured out a method to fix it.

First you need to export the customizations.xml file for the entity. Then open the customizations file and search for the duplicated defaulted view and change the
 
"isdefault name="Yes" "1 "isdefault "
To
"isdefault name="No" "0 "isdefault"

Note that when you find the view "name" in the customizations.xml file, it is actually at the bottom of the node. This means you will need to scroll up in the file to find the "isdefault" node.

Save, import, publish and you should be all set again.


Enable passing params in crm 4 query string

Sometimes in Dynamics CRM 4.0 we need to transform parameters as part of the QueryString (the URL).
In Dynamics CRM 3.0 we didn't have a problem to that, but in Dynamics CRM 4.0 you must follow the next steps:

1. Go to Registry into [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM]
2. Create a new DWORD with the name of [DisableParameterFilter]
3. Give [DisableParameterFilter] the value 1
4. iisreset

Enjoy.

Error while Assign account to user

I had the following problem after upgrade CRM 3 to CRM 4:

Problem: general unexpected error while assigning account to user or to myself:


Solution: KB 948172  Error message when you delete a queue item from a queue in Microsoft Dynamics CRM 4.0: "Record is unavailable"

http://support.microsoft.com/default.aspx?scid=kb;EN-US;948172


Track in CRM failed due to text exceeds maximum length

Problem: Error message while track email in CRM: the text entered exceeds the maximum length.

Solution: Go to customization, email, attributes, on messageID attribute change the length for more then 100 (I changed to 256).


Setting that must be changed at your Home CRM Outlook Client

This few step will allow you to work with the CRM Outlook Client Out of office.
There are several Settings that must be checked and changed before you install the CRM Outlook Client. 
Follow the next Steps:

1) In the Address of CRM server DON'T Write http://crm as it is in your office, Instead write the FULL path to the CRM for Example : http://crm.ABC.co.il

2) Place the the URL : http://crm.ABC.co.il that we have just spoke about to "Trusted Sites" in the Computer you'r installing the CRM Outlook Client. in order to do so follow the next steps :

A) Open Internet Explorer

B) Go to Tools Choose Internet Options

C) Go to Security Tab, Choose Trasted Sites and then Press the SITES Button



D) Place the Address *.ABC.co.il to the Websites list, and uncheck the check button



E) Press the Custom Level Button to get into the Advanced Policy of Trasted Sites Scroll till the end of the list mark the "Automatic logon with the current user name and password" then press OK. if you get an alert that wants you to confirm the change, Press YES to confirm it.



F) Press OK to Confirm the changes that were made and to close the window.

G) On the Internet Explorer go to the server with your address : http://CRM.ABC.co.il

H) In the authentication popup window your name : DOMAIN\USER
and the Password you use in your office. Check the Save password checkbox then Prees OK

I) Now you can close the CRM window, your password is saved in the system

J) If you have Installed The CRM Outlook Client Before you have made those changes remove the CRM Outlook Client and reinstall it.

Now The CRM Outlook Client Suppose to Work Just Fine.

Cannot add product using crm webservice - Error Number: 0x80043B0A

While trying to add a new product through a webform, I get the following error:



Error Number: 0x80043B0A

To resolve this problem you should check that both "Unit" and "Default Unit" are Business Required fields.

try to place values into both of them and you will find out that the error is no longer exist.

A schema validation error has been detected

Recently i have recieved the following error :

A schema validation error has been detected at line 54409, position 16.

This error shows up if you want to import a customizations file which has been exported from a system which has the Update Rollup package 1 installed.

VisibleToPlatform 0 /VisibleToPlatform

VisibleToPlatform 1 /VisibleToPlatform

There may be multiple reasons for this error to show up, but at least one of them is the existence of one of these lines in your code:

To solve the error message, just remove the line from the code or install the rollup package 1. For information and download of the package go here: http://support.microsoft.com/default.aspx/kb/922815

Enabling and Editing ISV.CONFIG

To edit the isv.config, do the following:

1.Export the isv.config using the Export Customizations tool. 

2.Create a backup copy of the exported XML file. Use this file to recover from errors.

3.Make your changes to the exported XML file.

4.Import the updated XML file using the Import Customization tool.

This file contains examples of the various customizations you can perform. You should rename this file and then create your own configuration file. By doing this you will not confuse the sample UI changes with the UI changes you need for your customization.

Enabling your customizations
To enable your customizations, modify the ISVIntegration setting in the web.config file, which is located at:

\wwwroot\web.config

This setting appears as follows:

The ISVIntegration setting is used as a performance optimization. When there are no customizations to be rendered, the value for this setting should be None. Multiple values can be used as long as they are separated by a comma and do not contain spaces, as shown in the following examples: 

The following table shows the possible values for the ISVIntegration setting.

Value Description 
All - Integration is turned on for both Outlook and Web clients 
None - Integration is not turned on 
Outlook - Integration is turned on for only the Outlook client 
OutlookWorkstationClient - Integration is turned on for only the full Outlook client 
OutlookLaptopClient - Integration is turned on for only the light Outlook client 
Web - Integration is turned on for only the Web client 

ISV Extensions Privileges
After you have enabled your customizations, you need to set the ISV Extensions privilege for security roles that need to use the customizations. By default, the security roles that do not represent a management position do not have ISV Extensions Privilege.

Disabling your customizations
To disable your customizations for either client you must use the appropriate setting in the web.config file. 

Security Issues

Any integration into the application or the Outlook client must participate in security. That is, any server or client application calling into the Microsoft CRM 3.0 application programming interface (API) must have user context in the same domain.

Group Policy to control preferences on the CRM Outlook Client

How to standardize synchronization settings for the CRM Outlook clients.

Attached is a basic template that allows an administrator to standardize the registry settings that affect how the CRM client for Outlook behaves on a client computer. 

CRM client for Outlook is not really Group Policy compliant because the registry settings it uses do not exist in the proper area of the registry. The attached template is actually applying "old style" NT preferences as opposed to policy. The major difference is that when a true group policy is removed, the registry settings on the affected machines are also removed. When an "old style" policy like this one is removed the registry settings on the target machines are not changed. So a word of caution here, any changes you make using this template will permanently overwrite registry settings on the target computer. Take a moment to understand what the current settings are on your systems before implementing this template.

To use this template unzip the file and then copy the MSCRMClient30.adm file to the C:\Windows\inf folder on the machine you are using to manage group policy. Open GPMC and create a new policy linked to an OU. Edit the new policy and then add the new template as follows:

• Right click the Administrative Templates folder under the User Configuration and select Add/Remove Templates. 
• Click the Add button and then locate the MSCRMClient30.adm policy file and click OK to save. 
• Click Close on the Add/Remove template to finish adding the template to the policy. 
• Make sure the Administrative Template folder is still selected and then select the View -> Filtering option from the MMC menu bar. 
• Uncheck the "Only show policy settings that can be fully managed" check box and click OK. (You will need to do this each time you want to edit the policy.)

You will now see a folder under Administrative Templates named Microsoft Dynamics CRM 3.0 Client for Microsoft Outlook with various policies in sub folders.

Improving the Outlook Client User Experience

Sometimes a Microsoft Dynamics CRM 3.0 Laptop Client for Outlook (hereafter referred to as the CRM Outlook Laptop Client) user can experience a hang or bad performance when using the tracking functionality. In this case just setting 'Regarding' field information for an email to be tracked in CRM or viewing regarding information for an email that is tracked in CRM causes the Server to not respond. If you've run into this problem read on.

What is the Cassini Hoster Process? 
The Cassini Hoster process is a substitute for IIS on the CRM Outlook Laptop Client that handles all the Web page processing on the client.

Why does this happen? To keep the ASP.Net running, which improves performance, the Cassini Hoster Process sends heartbeat pings based on the time set in registry key CassiniPollingPeriod.

The ApplicationHost.CreateApplicationHost is used to create an application domain to host ASP.Net. Every time the Cassin Polling period (milliseconds) expires we re-issue a heartbeat ping to the homepage.aspx to keep the ASP.NET running. This heartbeat ping is issued using the BeginGetResponse asynchronously. The problem is, we do not call “EndGetResponse” for the response got from the Server in the Response callback function. This causes, Cassini Server thread to just be held up in a wait state waiting for the client to invoke “EndGetResponse”.

As time passes, the heartbeat pings are accumulated and can depending on the machine configuration and settings exhaust all the worker threads. The server uses up all the threads and reaches a state where it no longer has any more threads to process genuine client requests coming from the CRM Outlook Laptop client. The user can then experience a hang or maybe reduced performance.

Okay, how do I fix this? 
The hunt to identify the locking up of threads waiting on client’s invocation of “EndGetResponse” was the most difficult part of figuring this out. Once this was identified, the fix was very simple. This is where KB 938574 comes into picture and this hotfix resolves the problem by calling the EndGetResponse in the Response callback function.

You can download the fix to resolve the Cassini hang issue from the link below:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;938547

Thank and enjoy.

Changing the Link of a Ticker Symbol from MSN Money to Google Finances

This is unsupported solution to change the ticker symbol to Google finance:

On C:\Inetpub\wwwroot\_forms\controls (may vary depending on your installation)
Open the following file: INPUT.text.ticker.htc

Change the line: 

safeWindowOpen("http://go.microsoft.com/fwlink?linkid=8506&clcid=" + CrmEncodeDecode.CrmUrlEncode(USER_LANGUAGE_CODE) + "&Symbol=" + CrmEncodeDecode.CrmUrlEncode(value), "", "height=" + (screen.availHeight * .75) + ",width=" + (screen.availWidth * .75) + ",scrollbars=1,resizable=1,status=1,toolbar=1,menubar=1,location=1");

Replace with: 

safeWindowOpen("http://finance.google.com/finance?q=" + CrmEncodeDecode.CrmUrlEncode(value), "", "height=" + (screen.availHeight * .75) + ",width=" + (screen.availWidth * .75) + ",scrollbars=1,resizable=1,status=1,toolbar=1,menubar=1,location=1");

Enjoy.

Thursday, January 29, 2009

How to change Field Requirement Level

This script allows you to change the requirement level for one or more fields.

The number in the script means the following :
0 - No Constraint
1 - Business Recommended
2 - Business Required

crmForm.SetFieldReqLevel("AttributeSchemaName", 1);

Form Assistant for Dynamics CRM 4.0 / 3.0

Purpose :
1) Some clients don't like using Form Assistant
2) On low resolution screens, I don't recommend using Form assistant. It takes up too much space

There are several steps we need to follow in order to hide the form assistant.

Dynamics CRM 3.0 – How to hide?
1. Export related Entity (where you want to disable Form Assistant)
2. Find the following: relatedInformationCollapsed="true";
3. Change "true" to "false"
4. Import

Dynamics CRM 4.0 – How to hide?
1. Go to customizations à Enter the relevant entity
2. Go to forms and views à Enter “Form”
3. Click on “Form Properties” and go to “Display” tab
4. Turn On/Off the features according to your needs

5. Click “Ok”
6. Save and close the form
7. Publish the entity and that’s it :)