0

I've created a custom workflow that sends emails to certain Contact Entities. I want the From field to be the "support" user (and email) that we've created in CRM, so that any replies would go to the correct place.

However, I don't know how to get that to work. Here's what I have:

var fromParty = new ActivityParty
{
    PartyId = new EntityReference("systemuser", new Guid("what goes here?")),
};

How do I get the Guid of the User that I want to send the emails as?
Is this even the correct way to go about what I'm trying to do?

4

2 回答 2

2

您可以从 CRM SDK 中查看有关向自定义工作流程序集添加输入参数的文档,该程序集允许在配置工作流步骤时通过查找来选择系统用户(如 Daryl 建议的那样)。

http://technet.microsoft.com/en-us/library/gg327842.aspx#AddingInput

于 2013-07-24T17:37:52.367 回答
1

您要么必须使用SystemUser实体查找用户 ID,要么将其传递到工作流活动中。

于 2013-07-24T16:17:38.610 回答