我正在使用CRM 4.0 Web服务界面开发应用程序,需要以编程方式创建电话记录并将其链接到帐户记录.我可以看到如何创建记录,但我不知道如何将电话号码链接到该帐户.任何帮助将非常感激.
谢谢
奈杰尔
我整个上午都在努力做到这一点.任何人都有一个代码片段(C#),显示如何通过Web服务更新CRM中的"活动"?我可以使用实体创建CreateReadUpdateDelete,但我不确定如何使用Activities.
在Google上找不到任何东西......
我正在尝试将自定义项导入到运行Dynamics CRM 4的服务器计算机上.我可以在我的CRM上传自定义文件,它向我显示所有实体.
但是当我尝试导入这些实体时CRM会给我一个SQL Server错误.我需要获取错误的详细信息,因此我需要在CRM服务器上启用跟踪.
如何在Dynamics CRM上启用跟踪?当我用谷歌搜索这个术语时,我发现了很多页面,但我并没有得到我想要的东西.
我目前正在评估Dynamics CRM 2011,所以我仍然在学习如何运作.
如果表单上标记为只读的字段,是否可以通过流程步骤"更新记录"更新它?我试图通过一个进程动态更新某些仅限视图的字段,但在界面中这些字段无法设置?
如果我编写自己的插件怎么办?这些字段是否仍然无法通过程序集更新?
在 CRM 4 中,我曾经在 CRMService.asmx 的 Visual Studio 项目中添加 Web 引用,它会给我带来所有实体(包括自定义实体)和所有服务。
现在我已经转移到 CRM 2011 并且我真的不完全理解它是如何在这里工作的......所有实体(包括自定义实体)的类,但没有服务..那么我如何在 CRM 2011 中使用 organization.svc?我是否只需要使用 crmSvcUtil 或将其与 organization.svc 的 Web 参考结合使用?
service entities web-reference dynamics-crm dynamics-crm-2011
有一个自定义实体ê.我想在E上添加一个查找字段,这是对联系人或帐户类型(即客户/方)的记录的引用.
例如,Case实体上有这样一个字段," customerid "(Customer类型).
替代方案(我将在'普通'SQL数据库上做)将添加两个字段:ref_contact,ref_account.
先感谢您!
我正在尝试使用HttpClient.PostAsync将json发送到Web API.它适用于控制台应用程序,但不适用于我的CRM插件.做一些研究我注意到它可能与插件运行和线程化的上下文有关.无论如何这里是我的调用代码:
public async void Execute(IServiceProvider serviceProvider)
{
IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
if (context.InputParameters.Contains("Target"))
{
if (context.InputParameters["Target"] is Entity)
{
Entity entity = (Entity)context.InputParameters["Target"];
if (entity.LogicalName == "new_product")
{
IOrganizationServiceFactory serviceFactory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);
try
{
if (entity.Contains("new_begindate") && entity.Contains("new_expirationdate"))
{
await OnlineSignUp(entity, service);
}
}
catch (InvalidPluginExecutionException)
{
throw;
}
catch (Exception e)
{
throw new InvalidPluginExecutionException(OperationStatus.Failed, "Error signing up: " + e.Message);
}
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
以下是发送json的相关代码:
private async Task<HttpResponseMessage> OnlineSignUp(Entity license, IOrganizationService service) …
Run Code Online (Sandbox Code Playgroud) 我们在表单上有一个嵌入的 HTML Web 资源,该资源具有控件的 name 属性(“WebResource_MyWebResource”)。
是否有一种方法可以从 HTML web 资源中使用,它允许我们动态获取其自己的父控件的 name 属性,或者我们是否需要将 webresource 控件名称作为数据参数传递以在脚本中使用它通过parent.Xrm.Page.getControl(arg)
?
我们不想硬编码资源名称,因为它用于通用功能,并且不一定知道最终用户将为控件提供的名称。
Kingwaysoft中是否存在一些元数据字段返回的错误null
?我有一个大型项目,正在下载所有帐户字段和元数据,除了owneridtype
其他几个以外,它们都可以工作。像这样的字段customertypecodename
都很好,并且我已经验证了它owneridtype
与所有其他字段的映射相同。我的来源是fetchxml查询。
我看到这些帐户字段以及实体regardingobjecttypecode
上的问题activitypointer
:
owneridtype
donotsendmarketingmaterialname
isprivatename
masteraccountidname
owneridtype
这是我的查询,减去自定义字段。如果需要,我可以添加它们。
<fetch mapping='logical'>
<entity name='account'>
<attribute name='accountcategorycode'/>
<attribute name='accountcategorycodename'/>
<attribute name='accountclassificationcode'/>
<attribute name='accountclassificationcodename'/>
<attribute name='accountid'/>
<attribute name='accountnumber'/>
<attribute name='accountratingcode'/>
<attribute name='accountratingcodename'/>
<attribute name='address1_addressid'/>
<attribute name='address1_addresstypecode'/>
<attribute name='address1_addresstypecodename'/>
<attribute name='address1_city'/>
<attribute name='address1_composite'/>
<attribute name='address1_country'/>
<attribute name='address1_county'/>
<attribute name='address1_fax'/>
<attribute name='address1_freighttermscode'/>
<attribute name='address1_freighttermscodename'/>
<attribute name='address1_latitude'/>
<attribute name='address1_line1'/>
<attribute name='address1_line2'/>
<attribute name='address1_line3'/>
<attribute name='address1_longitude'/>
<attribute name='address1_name'/>
<attribute name='address1_postalcode'/>
<attribute name='address1_postofficebox'/>
<attribute name='address1_primarycontactname'/>
<attribute name='address1_shippingmethodcode'/> …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在两个CRM数据库之间迁移数据(动态365),但是在kingswasoft中,每批数量限制为5000.任何人都可以建议一种方法,我可以发送n条记录?
dynamics-crm ×10
kingswaysoft ×2
c# ×1
dynamics-365 ×1
entities ×1
javascript ×1
json ×1
service ×1
sql-server ×1
ssis ×1
xrm ×1