问题标签 [custom-activity]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c# - 用于 SharePointOnlineCredentials 的 WWF 自定义活动绑定
我创建了一组 WWF 自定义活动以通过 CSOM 与 SharePoint 交互。我创建了以下活动,但是,我在 XAML 设计器中绑定参数时遇到了困难,我已经Microsoft.SharePoint.Client
在 XAML 文件中导入了命名空间,但是The name "SharePointOnlineCredentials" does not exist in the namespace "clr-namespace:Microsoft.SharePoint.Client"
当我尝试将 ExpressionType 绑定到sp:SharePointOnlineCredentials
.
任何人都可以建议我如何绑定ExpressionTextBox
ExpressionType
toSharePointOnlineCredentials
吗?
注意:我意识到缺少一些代码,这是故意的!
活动课
XAML 设计
python - 如何在 Azure 数据工厂自定义活动中加载 python 库?
我知道您可以使用带有预加载 python 库的自定义 VM 映像的批量自定义活动来通过 ADF 运行您的 python 程序。
我们还可以使用普通的 linux VM 映像并加载 python 库作为自定义活动执行的一部分吗?我知道这可能会增加执行时间,因为每次都必须安装库,但我想知道它是如何完成的。解释/示例表示赞赏。
谢谢!
powershell - 如何从 Azure 数据工厂自定义活动中执行 PowerShell 命令?
我在 Azure 数据工厂中有一个自定义活动,它尝试执行以下命令:
PowerShell.exe -Command "Write-Host 'Hello, world!'"
但是,当我从 Azure 数据工厂中调试(运行)此命令时,它运行了很长时间,最后失败了。
我猜它失败了,因为它可能找不到“PowerShell.exe”。如何确保 ADF 自定义活动可以访问 PowerShell.exe?
一些网站说要指定一个包(.zip 文件),其中包含执行 exe 所需的所有内容。但是,由于 PowerShell 来自 Microsoft,我认为压缩 PowerShell 目录并将其指定为自定义活动的包是不合适的。
请建议我如何从 Azure 数据工厂的自定义活动中执行 PowerShell 命令。谢谢!
每当我搜索“从 Azure 数据工厂中的自定义活动执行 PowerShell”时,搜索结果都会更多地讨论用于触发启动 ADF 管道的 Az PowerShell 命令。
我在 Stackoverflow.com 中看到了两个线程,其中答案只是指定使用自定义活动,而答案并不特定于来自 ADF 的 PowerShell 命令调用
这是该任务的 JSON:
{
"name": "ExecutePs1CustomActivity",
"properties": {
"activities": [
{
"name": "ExecutePSScriptCustomActivity",
"type": "Custom",
"dependsOn": [],
"policy": {
"timeout": "7.00:00:00",
"retry": 0,
"retryIntervalInSeconds": 30,
"secureOutput": false,
"secureInput": false
},
"userProperties": [],
"typeProperties": {
"command": "PowerShell.exe -Command \"Write-Host 'Hello, world!'\"",
"referenceObjects": {
"linkedServices": [],
"datasets": []
}
},
"linkedServiceName": {
"referenceName": "Ps1CustomActivityAzureBatch",
"type": "LinkedServiceReference"
}
}
],
"annotations": []
}
}
我看到“进行中”3 分钟(180 秒),然后显示为“失败”。
c# - 使用 azure 自定义活动运行将 DBF 文件转换为 CSV 的 c# 可执行文件
有没有办法查询存储在 azure blob 存储中的 dbf 文件,然后将结果放入数据表中?到目前为止,我在本地下载 dbf 文件,然后使用 OleDb 连接来查询 dbf 文件并将结果加载到数据表中。现在我将我的可执行文件作为自定义活动移动到 Azure 数据工厂,因此没有本地路径可以下载 dbf 文件。有没有其他方法可以查询存储在 azure blob 存储中的 dbf 文件而无需下载它?我的可执行文件是用 c# 编写的。你能指出我正确的方向吗?
任何帮助都感激不尽!
javascript - 从 Config.Json、Journey Builder、Marketing Cloud 获取 InArguments
我一直在尝试了解如何在营销云上使用 Journey Builder 中的 InArguments/OutArguments,但没有成功。我一直在阅读 Marketingcloud 上的文档以及 GitHub 示例,但仍然无法理解。我相信网上的很多信息都是过时的或不完整的。
这是我的 config.json:
和我的 customActivity.js:
您能否告诉我如何为每个进入我的 customActivity 的联系人获取这些 InArguments 并在我的应用程序中操作它们?
据我了解,当向“/”发出请求时,我的 app.js 会为我的 index.html 提供服务,然后启动我的 customActivity.js 脚本,该脚本使用 Postmonger 模块来回复诸如 Init/Ready 之类的事件。对此的任何澄清将不胜感激。
谢谢你。
java - How to call Custom Activity inside onCreate method
I am developing a simple app that has two activities, MainActivity and SecondActivity and a transparent CustomActivity that extends Dialog. The
MainActivity has two buttons (Yes_button
and No_button
).
When user clicks
Yes_button
, the SecondActivity is called via Intent and the CustomActivity will be in front of it.When user clicks
No_button
the SecondActivity will also be called but the CustomActivity will not be called alongside with it.
The calling of the CustomActivity is based on if-else statement expressions. The CustomActivity has a skip button, when clicked the CustomActivity will close only then can the SecondActivity be accessible to the user. The SecondActivity has just one button that calls the MainActivity and the cycle continues.
Problem
When the app launches and a user clicks on the No_button
, the SecondActivity will be called without the CustomActivity (as expected!), but ONCE a user
clicks on the Yes_button
, the SecondActivity will keep on displaying alongside the CustomActivity EVEN when the No_button
is clicked.
Expectation
I want the SecondActivity to be called alongside the CustomActivity each time the Yes_button
is clicked and also let only the SecondActivity be called when ever the No_button
is click.
activity_main.xml
MainActivity.java
activity_second_activity.xml
SecondActivity.java
activity_custom_activity.xml
CustomActivity.java
checking.xml
javascript - CRM 自定义活动不返回输出参数
我写了一个自定义活动如下,
我正在尝试从 JavaScript 调用此活动。
但是,它不返回任何数据。有什么问题?
salesforce - 无法使用 Ids 中的冒号从 Salesforce 条目数据扩展更新联系人
我正在尝试更新具有复合属性的 Salesforce 数据扩展,例如Lead:Id
我正在使用这个文档:PUT /hub/v1/dataevents/key:{key}/rows/{primaryKeys}
但我收到了这个错误:
{"message":"参数 {primaryKeys} 无效。","errorcode":10005,"documentation":""}
我试着把 id 像这样:
但我收到了同样的信息。
有什么办法吗?
谢谢!
azure-data-factory - Azure 数据工厂 - 批处理帐户 - BlobAccessDenied
我正在尝试使用数据工厂中的自定义活动来在批处理帐户池中执行存储在 blob 存储中的 python 批处理。
我按照微软教程https://docs.microsoft.com/en-us/azure/batch/tutorial-run-python-batch-azure-data-factory
当我签入批处理资源管理器工具时,我收到了这条 BlobAccessDenied 消息:
根据执行情况,它发生在所有 ADF 参考文件上,但也发生在我的批处理文件上。
我是新手,我不确定我必须做什么来解决这个问题。
预先感谢您的帮助。