addressused on email "from" 属性
addressused on email "from" attribute
我在创建电子邮件时使用预操作插件来更改电子邮件 "from" 属性上的实体引用。
这是我用于设置的代码:
((EntityCollection)entity.Attributes["from"]).Entities[0].Attributes["partyid"] = erQueue; //erQueue is an entityReference of a certain queue
我还希望从 queue 电子邮件地址发送电子邮件,而不是从原始发件人地址发送。
我是否还应该设置 "from" 活动派对的 "addressused 属性,还是会自动发生?
CRM 应默认使用所选记录的主要电子邮件地址的电子邮件地址。
我过去只在想使用所选记录的主电子邮件地址以外的电子邮件地址时使用过 addressused
。
因此,在您的情况下,我认为您不需要设置 addressused
。
文档有点旧,但我相信仍然真实且相关。
activityparty.addressused Property
The property activityparty.partyid contains the ID of an account,
contact, lead or systemuser. For account, contact or lead, the
property emailaddress1 is used as the default value for the e-mail
address. If this value is blank, emailaddress2 is used, and so on. For
systemuser, the default e-mail address is internalemailaddress.
To override this default, you can specify an alternate address as the value for addressused. For example, if you set addressused to the
value "someone@example.com", that e-mail address will be used.
我查了一下,邮件发送时在"from"栏填写了原系统用户的邮件地址。所以我不得不在 from 属性中更改 activityparty 使用的地址:
((EntityCollection)entity.Attributes["from"]).Entities[0].Attributes["addressused"] = sQueueEmailAddress;
我在创建电子邮件时使用预操作插件来更改电子邮件 "from" 属性上的实体引用。 这是我用于设置的代码:
((EntityCollection)entity.Attributes["from"]).Entities[0].Attributes["partyid"] = erQueue; //erQueue is an entityReference of a certain queue
我还希望从 queue 电子邮件地址发送电子邮件,而不是从原始发件人地址发送。 我是否还应该设置 "from" 活动派对的 "addressused 属性,还是会自动发生?
CRM 应默认使用所选记录的主要电子邮件地址的电子邮件地址。
我过去只在想使用所选记录的主电子邮件地址以外的电子邮件地址时使用过 addressused
。
因此,在您的情况下,我认为您不需要设置 addressused
。
文档有点旧,但我相信仍然真实且相关。
activityparty.addressused Property
The property activityparty.partyid contains the ID of an account, contact, lead or systemuser. For account, contact or lead, the property emailaddress1 is used as the default value for the e-mail address. If this value is blank, emailaddress2 is used, and so on. For systemuser, the default e-mail address is internalemailaddress.
To override this default, you can specify an alternate address as the value for addressused. For example, if you set addressused to the value "someone@example.com", that e-mail address will be used.
我查了一下,邮件发送时在"from"栏填写了原系统用户的邮件地址。所以我不得不在 from 属性中更改 activityparty 使用的地址:
((EntityCollection)entity.Attributes["from"]).Entities[0].Attributes["addressused"] = sQueueEmailAddress;