我有两个单选按钮.如果我检查第一个单选按钮以下数据将填充在组合框中.之后,我将检查另一个单选按钮,我想清除组合框值.
<RadioButton Height="29"
HorizontalAlignment="Left"
Margin="143,193,0,0" Name="rdoEmployee" VerticalAlignment="Top" Width="61"
FontSize="20" Checked="rdoEmployee_Checked" GroupName="rdoEmployee/>
<RadioButton FontSize="20" Height="20" Margin="228,193,0,0" Name="rdoPA"
VerticalAlignment="Top" HorizontalAlignment="Left" Width="49"
Checked="rdoPA_Checked" GroupName="rdoEmployee />
<ComboBox HorizontalAlignment="Left" Margin="142,235,0,240"
Name="cmbEmpType" Width="200" FontSize="16" />
Run Code Online (Sandbox Code Playgroud)
EmployeeTypes _ET = new EmployeeTypes();
DataRowCollection drc = _ET.EmpTypeTable.Rows;
foreach (DataRow r in drc)
{
ComboBoxItem item = new ComboBoxItem();
item.Tag = r["EmpTypeID"];
item.Content = r["EmpTypeName"];
cmbEmpType.Items.Add(item);
if (cmbEmpType.Items.Count > 0)
{
cmbEmpType.SelectedIndex = 0;
}
}
Run Code Online (Sandbox Code Playgroud) 我已经做了很多狩猎和不能找到如何获取一个例子Connection的之间的信息Account,并Contact在动态CRM 2011年有人点我在正确的方向?
仅供参考,这是我通常的检索数据的方法(它没有涵盖这个问题,我尝试的任何东西都没有接近工作)
var context = new XrmServiceContext(crmService);
var accounts = context.AccountSet.Where(a => a.Name.StartsWith("A"));
Console.WriteLine("Accounts beginning with the letter A");
foreach (Account account in accounts)
{
Console.WriteLine("{0} ({1})", account.Id, account.Name);
}
Run Code Online (Sandbox Code Playgroud)
提前致谢.
我希望有人可以帮助我.我找到了一篇文章,它为您提供了一小段代码,用于添加添加多个实体(成员)到营销列表.到现在为止还挺好.我遇到了这个问题.我有一个自定义查找字段,它在营销成员列表中获得另一个营销列表(具有联系人,帐户或潜在客户).现在我需要将这些成员迁移(添加)到我的新营销列表中.我的代码:
1. AddListMembersListRequest request = new AddListMembersListRequest();
2. request.ListId = Origmarketing_List_Id.Id;
3. request.MemberIds = new Guid[1];
4. request.MemberIds[0] = guid;
5. AddListMembersListResponse resp = (AddListMembersListResponse)service.Execute(request);
Run Code Online (Sandbox Code Playgroud)
第2行是我从EntityReference获取的ID(Look Up字段获取另一个营销列表),现在我设置的第三和第四行是我真的很困惑的但我仍然确定我会在这里因为我将它设置为listmemberid.在这个例子中,我只有一个原因,我想尝试它是如何工作的.第4行bdw中的guid获得正确的值,它在我的代码的顶部被声明(并且我在另一个字段上输出它只是为了检查它获取正确的值).也有人可以在你想要添加多个实体时展示你将如何做到这一点?谢谢.我在预操作(Create)上注册了我的插件.并且插件本身不会触发任何错误,但它似乎并没有在我的新列表中添加任何成员.如果somone可以帮助我,我真的很感激.非常感谢你提前.
正如我从谷歌搜索中了解到的那样,MSCRM 2011检索最多5000个实体,但我希望我的所有实体都来自营销列表.正如在Web上创建的,在HKLM\Software\Microsoft\MSCRM上创建"TurnOffFetchThrottling"字段并将值设置为1可以解决此5000限制问题(此外,我在注册表中添加了MaxRowsPerPage字段并将其值设置为超过5000,但它也不起作用).我试了一下,我得到了System.OutOfMemory Exception错误.顺便说一句,当我删除""并只是获取id属性代码完美,但我需要所有属性.这是我的fetchxml代码:
enter code here
string fetchXml = "<fetch mapping='logical' >"
+ "<entity name='" + entityType.LogicalName + "'>"
+ "<all-attributes />"
+ "<link-entity name='listmember' to='" + entityType.LogicalName + "id" + "' from='entityid'>"
+ "<filter>"
+ "<condition attribute='listid' operator='eq' value='" + chosenMarketingListGuid + "'/>"
+ "</filter>"
+ "</link-entity>"
+ "</entity>"
+ "</fetch>";
Run Code Online (Sandbox Code Playgroud)
我又尝试了一件事,我将fetchxml更改为:
enter code here
string fetchXml = "<fetch mapping='logical' >"
+ "<entity name='listmember'>"
+ "<all-attributes />"
+ "<filter>"
+ "<condition attribute='listid' operator='eq' value='" + chosenMarketingListGuid + "'/>"
+ …Run Code Online (Sandbox Code Playgroud) 我正在寻找一种方法来使用SQL Server的全文索引在Dynamics CRM 2011在线进行通用搜索.我知道有可能使用内部版本,但无法找到在线版本的方法.如果没有简单的方法,那么开发它的方法是什么?(也许通过一个插件?)