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