有谁知道如何将EntityReference转换为实体.
protected override void Execute(CodeActivityContext executionContext)
{
[Input("Email")]
[ReferenceTarget("email")]
public InArgument<Entity> EMail { get; set; }
Entity MyEmail = EMail.Get<Entity>(executionContext);
Run Code Online (Sandbox Code Playgroud)
这给了我一个错误.无法转换此.
我正在开发自定义工作流程活动.我用代码生成工具(CrmSvcUtil.exe)创建了自己的helper.cs(Early Bound Entity Classes)
当我尝试编译代码时,它返回以下错误:
命名空间''已包含'Workflow'的定义
从Helper.cs文件.
有谁知道这意味着什么?
c# workflow-activity dynamic-programming dynamics-crm dynamics-crm-2011
我正在尝试使用Query Expression进行简单的内部联接.我试图用QE转换这个查询,但我总是得到同样的错误.我正在做这个QE:
Entity Role = new Entity();
Role.LogicalName = "role";
Entity SystemUserRoles = new Entity();
SystemUserRoles.LogicalName = "systemuserroles";
QueryExpression query = new QueryExpression() {
Distinct = false, EntityName = Role.LogicalName, ColumnSet = new ColumnSet("name"),
LinkEntities = {
new LinkEntity {
JoinOperator = JoinOperator.Inner, LinkFromAttributeName = "roleid", LinkFromEntityName = Role.LogicalName, LinkToAttributeName = "roleid", LinkToEntityName = SystemUserRoles.LogicalName,
}
},
Criteria = {
Filters = {
new FilterExpression {
FilterOperator = LogicalOperator.And, Conditions = {
new ConditionExpression("systemuserid", ConditionOperator.Equal, "9b1bf31d-ac29-e211-9826-00155d0a0b0f"),
},
},
}
} …
Run Code Online (Sandbox Code Playgroud) 我一直用插件做这个,这是非常有用的东西,因为你不需要连接到IIS进程.
本教程将介绍如何在本地执行此操作:http://athulmt.blogspot.it/2012/09/debugging-plugin-in-crm-2011.html
现在我正在尝试使用插件注册工具调试CRM 2011活动工作流程,但由于我不了解工作流程,因此没有找到任何方法.
是否可以将 PowerShell 代码 .PS1 转换为 C# 代码?
我一直在谷歌上寻找它,但我总是发现相反。
Reflector有AddIn 将 DLL 转换为 PS Code,所以我认为这是可能的..
我正在尝试创建Visual Studio解决方案文件(.sln)并在其中添加多个项目.当我添加一个项目时(.sln)文件消失,我无法插入其他项目.
有谁有任何想法?
我需要提取在数据库中注册的Crm 2011插件DLL.有谁知道这是否可能?
我正在尝试将crm 4插件转换为CRM 2011.有谁知道CRm 2011中各自的类型?
Customer,CrmDateTime,CrmDecimal,CrmFloat,CBoolean,CrmMoney,Owner,Picklist,Key,Status,UniqueIdentifier,CrmBoolean
public static object GetAttributeValue(this Entity target, string attributeLogicalName)
{
object value;
if (target.Attributes.Contains(attributeLogicalName))
{
value = target.Attributes[attributeLogicalName];
if ((value is Boolean) || (value is string))
return value;
else if (value is Customer)
return ((Customer)value).Value;
else if (value is CrmDateTime)
return ((CrmDateTime)value).UserTime;
else if (value is CrmDecimal)
return ((CrmDecimal)value).Value;
else if (value is CrmFloat)
return ((CrmFloat)value).Value;
else if (value is CrmNumber)
return ((CrmNumber)value).Value;
else if (value is CBoolean)
return ((CrmBoolean)value).Value;
else if (value is Lookup)
return …
Run Code Online (Sandbox Code Playgroud) 我正在尝试实现一个函数,在Click事件,下载文件,并关闭UI对话框文件下载完成后.问题是,$preparingFileModal.dialog({ modal: true })
代码不再触发后 successCallback
无法检测到文件下载结束.
$(function () {
$(document).on("click", "a.fileDownloadCustomRichExperience", function () {
var $preparingFileModal = $("#preparing-file-modal");
$preparingFileModal.dialog({ modal: true });
$.fileDownload($(this).prop('href'), {
successCallback: function (url) {
$preparingFileModal.dialog('close');
},
failCallback: function (responseHtml, url) {
$preparingFileModal.dialog('close');
$("#error-modal").dialog({ modal: true });
}
});
return false; //this is critical to stop the click event which will trigger a normal file download!
});
});
<div id="preparing-file-modal" title="Preparing report..." style="display: none;">
We are preparing your report, please wait...
<div class="ui-progressbar-value ui-corner-left ui-corner-right" …
Run Code Online (Sandbox Code Playgroud) dynamics-crm ×5
.net ×2
c# ×2
crm ×1
dll ×1
dynamic ×1
javascript ×1
jquery ×1
jquery-ui ×1
powershell ×1
ps1 ×1
sql-server ×1