Monday, May 10, 2010

User Mapping Error while Importing Organization

While importing an organization into CRM, one may come across the following error message “At least the setup user needs to be mapped before this organization can be imported”.

For this issue follow these steps:
- Update “Accessmode” , “Setupuser” and “IsDisabled values in systemuser table.
Query to update:
Update SystemUser Set Accessmode=’0’, Setupuser=’0’, IsDisabled=’0

- Click Start, All Programs, Microsoft Dynamics CRM, and then click Deployment Manager.
- Click on “Import organization”


- Type the SQL server name to which you want to restore the SQL Server database in the SQL Server , select the organization database and then click Next.


- Type the display name and then click Next.


- Type the report server URL, and then click Next.


- Select Manually map users, and then click Next.


- You will be able to see all the users in selected database so you need to map existing CRM users.


- Click Next after the system requirements checks are completed.

- Click Import to start the Import Organization Wizard.

- Lastly click Finish.





Monday, May 3, 2010

Append v/s append to

Append and Append To are two privileges that most user are not very clear about regarding their functionality. In this article we try to explain the difference between “Append” and “Append To” Privileges and how it affects the user access.

Append and Append To basically deal with the entities that are parties to a 1:N relationship or N:1 relationship.

Append: When an entity has the lookup of another entity on its form. It is important that the user have the “Append” privilege on this entity so that it can set the values for the lookups on this entity. For eg: Contact has the lookup of Account on its form so here the user needs to have the “Append” privilege to be able to set the parent account.

Append To: When an entity is available as a lookup on another entity form. It is important that the user have the “Append to” privilege on the entity that is referred to in the lookup so that it can set the values for the lookups of this entity on any other form. For eg: Account has the lookup of primary contact. So here the user needs to have the “Append To” privilege to be able to set the Primary Contact for the Account.

Lets us take an example of Contact entity.

We have modified the Order Role and removed the “append” privilege to the Contact entity.
When a user with this role logs in, they would find the Parent Account lookup disabled.

This is because the user does not have the “Append” privilege to the contact entity. So all the lookups on the contact form are Disabled.

Now we have modified the Order Role and provided the “Append” privilege for the contact entity and removed the “Append To” privilege from the contact entity.

The Primary Contact on Account is disabled.

It means the lookup of contact entity will be disabled on all the entities if the “append to” privilege to contact is removed.

Hope this helps decipher the mystery behind “Append” and “Append To”.



Wednesday, April 28, 2010

How to restrict attachment file type and file size in Dynamics CRM

CRM allows you to control the file types of the attachments that enter your CRM.

If you want to restrict/allow a particular file type to be added as an attachment you would need to edit the list in the System Settings --> General tab.


If you ever happen to come across the following screen while attaching a file, its probably because the file type or file size has been restricted.




To control the file size of the attachment, you can reset the setting on the Email Tab of the System Settings.





Thursday, April 22, 2010

Attribute Missing in Advanced Find Filters

It is possible that you may find one of the system attributes or perhaps one of the custom attribute that you have just added missing when you try to create an Advanced find view and try to filter by providing the filter attribute.

Advanced Find appears to list out only those attributes that have the Searchable property set to “Yes”. To fix the above problem, edit the missing attribute and set its searchable property to “Yes” and then publish the entity customization.

You will now find this in the Attribute list in the Advanced find designer.



Wednesday, April 14, 2010

Lost the only System Administrator User defined in the System :(

The story goes, the system had only one user that was assigned the System Administrator Role, to avoid giving blanket rights to many in the organization.


Unfortunately, this user (the only System Administrator) goes ahead and takes the role off their user. Cool… Now we are left with no System administrator user in our CRM system.

System Administrator happens to be the only user with the privileges to assign roles to a user in CRM.

With no System administrator in the entire system, it was as if we were locked out as no one had any rights to make anybody the system administrator.

The only workaround, though unsupported, worked for us is to make a couple of updates to the tables directly from the backend.

select * from SystemUserBase where FullName='System Administrator'

From this query we was able to get the “Systemuserid” of the “System Administrator”

Now use this “systemuserid” in the below query:
select * from SystemUserRoles where SystemUserId='3B0574CE-A5EE-DD11-BDF0-0003FFEB167C'

From the above query we got the total roles associated with the “System administrator”.

Now find the roleid of “System Administrator” role by the below query.
select * from RoleBase where Name='System Administrator'


Now we have to update the “systemuserroletable”. We will update the roleid of the first row to roleid of “System Administrator” role.

update SystemUserRoles set RoleId='B6F673CE-A5EE-DD11-BDF0-0003FFEB167C' where SystemUserId='3B0574CE-A5EE-DD11-BDF0-0003FFEB167C'
and SystemUserRoleId='01ACF23C-D23C-DF11-A664-0003FFD1167C' and RoleId='6D0274CE-A5EE-DD11-BDF0-0003FFEB167C'

Do the “IISRESET”

Now the “System Administrator” has the “System administrator” role.

However, the “CSR Manager” role is missing because we have updated this roleid by “System Administrator” roleid in “SystemUserRoles” table.
But now we do have the manage roles button to allow us to add this role back again


To be used at your own risk and only if you are locked out of your own system.