Tuesday, June 22, 2010

Pass parameter to Plug in

How can i pass parameters to Plugin?

1. open plugin registration
2. CRUD step.
3. Right side contains two rich text: unsecure configuration, secure configuration ( see picture)
4. Add your parameters
5. Current status every executes this step the parameters passed to plugin.

How to get the parameters in PlugIn?
Create two constructors like this example:
//without parameters
public AuditEntities() { }
//with parameters
public AuditEntities(string unsec, string sec) { }

the parameters passed to unsec or sec. save the parameters and good luck

Thanks,
Rami Heleg



Replace PlugIn File field becuase file in use

Question:
I tried to replace plugin dll in and always get message “File in used”….

I did iisreset but still the same problem.

What can I do…?

Answer:
The reason is async service.

You need to stop Microsoft CRM Async service replace the file and restart again

( one of your step is async step)


thanks,
Rami Heleg

Saturday, May 8, 2010

IIS: how to get the IUSER password for IIS

Hi ,
i try to run web site in IIS folder with ammoniums creational but by mistake I deleted the IUSER password. I can I get the password?

Solution:
Open command dialog and select folder " C:\Inetpub\AdminScripts"
Write the command:
C:\Inetpub\AdminScripts>cscript adsutil.vbs get w3svc/anonymoususerpass

Now take the answer and use the password for IIs

Thanks
Rami Heleg

Error message when open Deployment Manager

Hi,
i try to open Deployment Manager many time and get sometimes error message.
after press the message the Deployment Manager still work.

to solve this error need to add key to register..

reasons for the error:Active Directory contains many domain controllers.
You have insufficient permissions to query all domain controllers.

solution:

Go to the following registry :
HKLM\Software\Microsoft\MSCRM
Add a new String value that is named PreferredDc.
Specify the domain controller that you want. Typically, this is the closest domain controller.
Restart the CRM server.

thanks,
Rami Heleg

IFD: failed to view in IFRAME CRM pages...( cannot be found)

Hi,
i view in IFRMAES pages for instance from UserDefined folder.

set the file like that to the frame.src :"\UserDefined\area.aspx?id=23232"
using the relative path.

if i try to work with windows Auth all file but if i try to open the same page from out side ( IFD - Form Auth) the page field to view.

the reason is :

CRM failed to add the full extenstion path if it's form auth...in windows auth all works fine.. .

solution:
i check in my code if the server.location from IFD or windows auth..

if IFD i gave to frame.src the full path for instance:
http:\\mymachiume.crm\UserDefined\area.aspx?id=23232"
now works fine.

thanks
Rami Heleg

Sunday, April 18, 2010

Remove Outlook button in Microsoft dynamics CRM

Hi,
after installed rollup 7 to CRM new button appear " Outlook"

to remove this button:

1. On the Microsoft Dynamics CRM Application Server click Start, click Run, type Regedit, and then click OK.

2. Locate the following registry subkey: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSCRM.

3. Right-click MSCRM, click New, and then click DWORD (32-bit) Value.
Name the new key DisableOutlookSetupLink.

4. Right-click DisableOutlookSetupLink, click Modify, and then type 1 to disable the CRM for Outlook button for all users.

thanks
Rami heleg

Sunday, April 4, 2010

Register Plug-In options

Hi,
install plug-in dll can be in 3 install options

1. disk
in this case the file must be under server\bin\assembly folder

2. database
CRM upload the file to database. this plug-in option is the faster from all the three options
3. GAC
file must be under c:\windows\assembly

if the DLL have references to GAC in this case install the dll only if the GAC contain the relevant files ( depend on CRM installation ( Full server or in 2 servers platform and application))

replace-update dll:
if replace for new version failed by getting error message " The file is in used"... in this case stop the service:
Microsoft Dynamics CRM 4.0 Async service
and start again... if still failed to replace the file in this case stop the IIS.
can get this error if file register to Disk or GAC.

to register the dll use Plug-in registarion.. from SDK download.


images:
using images help to get all fields from pre and post or get selected fields.

pre and post images relenat for all messages except Create.. Contain only post images.


thanks
Rami Heleg.