tags:

views:

97

answers:

4

I'm wondering if there is any way to be able to include an arbitrary email address as the To:, From:, CC: or BCC: fields of a send email activity? It appears that they must be contacts in the CRM.

I ask this because I have a requirement to cc a known group email (no actual user associated with the email...something like [email protected] it's not a queue at all). I'm concerned that if I create a CRM user for this email, that when I move to production, I'll have to change all the workflows using this email to point to the CRM entity on the production box (assuming GUID is saved with activity).

If an arbitrary email isn't possible, any other suggestions?

Thanks!

+1  A: 

To my knowledge, the only way to do this would be to create a custom workflow assembly. This may be more trouble to you than it's worth.

Focus
+1  A: 

I doubt it. Not without horrible SDK or Custom Workflow Activity machinations, which even then may not work. Unless you have a truly gargantuan number of workflows that must be altered, the manual approach may be the best.

It may be a terrible hack, but you might be able to replace instances of the development environment support account GUID with its production counterpart directly in SQL Server. Not in the SystemUserBase table, but in whatever workflow activities mention the support account as a CC field in an e-mail. But that is scary stuff.

You may also want to take another look at your process; a significant portion of Dynamics CRM is dedicated to handling support issues, and that includes fairly robust e-mail tracking and storage; there probably shouldn't be a need to CC this support mailbox to which you refer.

In summary: All of the options I've listed are terrible. Find a way to avoid them. :-P

Kevin L.
Thanks for the info (depressing as it is, in my case). Note that this is NOT support related, that was just my sample email...probably a bad choice.
Greg McGuffey
+1  A: 

I've had this requirement before, and even with workflow activities, there doesn't seem to be a way to handle this (even though CRM will allow it through the UI).

Your instinct is right that if you create a user separately in both environments and then try to move a workflow that references that user between the environments, that the workflow references will have to be updated.

The best solution, to me, would be to go with just creating the contact/user in one environment. But then, create the contact/user in your other environments with the same Guid. You can do this through the API quite easily, or for a no-code solution, there is a Microsoft provided CRM Configuration Data Utility (http://msdn.microsoft.com/en-us/library/dd442453.aspx) that you can use. (Note that the utility will want to migrate all records from the chosen entity, so you might want to export it to a file, edit the resulting file which is just XML, and then import to your target).

Matt
+1  A: 

I'm not quite sure, if I have unterstood your question right:

You want to create a workflow which contains a send mail activity. You would like to set one of the address fields (To:, From:, CC:) to a plain mail address like '[email protected]'?

It is possible if

  1. you enter the mail address by hand (do not use the field assistant)
  2. you have configured that e-mails with unresolved recipients are allowed to be sent.
    See Settings -> Administration -> System Settings -> E-Mail Tab
  3. you don't want to set the e-mail address with another workflow step
ckeller
This is exactly what I wanted, but the workflow won't let me save if the field (FROM in this case) is unresolved. So, this isn't actually working. This does allow email activities to use unresolved emails, but not workflows (at least not that I see).
Greg McGuffey
You are correct: the field 'from' needs an instance of an valid activity party. It is (IMHO) necessary for tracking reasons.
ckeller