What email format is used by CRM 2011 to validate email address?

纵然是瞬间 提交于 2019-12-11 22:30:49

问题


Can anybody tell that how emailaddress is validated in CRM 2011 ?

Because when I am trying to save EmailAddress on Lead Entity

like

Lead lead = new Lead()
{
   FirstName = "ABC",
   LastName = "XYZ",
   EmailAddress1 = "test@test.com"
};
serviceProxy.Create(lead);

It throws Generic SQL Error. I think it is because EmailAddress1 field has Format = Email.

I have created a new field new_MyEmail and set Format = Email

Lead anotherLead = new Lead()
{
   FirstName = "DEF",
   LastName = "STU",
   new_MyEmail = "test1@test.com"
};
serviceProxy.Create(anotherLead);

It also throws "eneric SQL Error.

Then I have deleted new_MyEmail field and re-created with Format = text.

It works..!!

So please if anybody can tell what is the reason of this or what is format of email address for CRM 2011, then would be great for me.

Thanks.

来源:https://stackoverflow.com/questions/19136453/what-email-format-is-used-by-crm-2011-to-validate-email-address

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!