How entity edit URL from within plug-in in MS Dyanmics CRM 4.0

Posted by Greg McGuffey on Stack Overflow See other posts from Stack Overflow or by Greg McGuffey
Published on 2010-04-10T01:50:10Z Indexed on 2010/04/10 1:53 UTC
Read the original article Hit count: 333

Filed under:

I would like to have a workflow create a task, then email the assigned user that they have a new task and include a link to the newly created task in the body of the email. I have client side code that will correctly create the edit URL, using the entities GUID and stores it in a custom attribute. However, when the task is created from within a workflow, the client script isn't run.

So, I think a plug-in should work, but I can't figure out how to determine the URL of the CRM installation. I'm authoring this in a test environment and definitely don't want to have to change things when I move to production. I'm sure I could use a config file, but seems like the plug-in should be able to figure this out at runtime.

Anyone have any ideas how to access the URL of the crm service from within a plug-in? Any other ideas?

Thanks!

© Stack Overflow or respective owner

Related posts about dynamics-crm