从 javascript 创建/删除连接
是否可以创建连接 通过 REST 服务(或其他方法)从 javascript 实现?
我根本找不到对此的大量支持。
有人做过类似的事情吗?
我使用它是因为我想向多个选定的联系人添加自定义角色。
编辑: 我当前启动 HTML Web 资源,迭代选定的 GUID 并创建关联规则。在这个阶段,我想触发一个工作流程来管理应该发送哪些欢迎电子邮件以及其他事情。由于我似乎无法触发创建关联的工作流程,因此我现在正在考虑使用连接,因此更新我的 JS 来创建/删除这些连接而不是关联。这样我就可以触发工作流程。但是不知道如何在 JS 中创建连接。
Is it possible to create a Connection from javascript through the REST services (or another method)?
I can't find a great deal of support on this at all.
Anyone done something similar?
I'm using this as I want to add a Custom role to multiple selected contacts.
EDIT:
I currently launch a HTML web resource, iterate through the selected GUIDs and create association rules. At this stage I wanted to trigger a workflow to manage which welcome email should be sent out as well as other things. As I can't seem to trigger a workflow on the creation of an association I'm now looking at using connections so updating my JS to create / remove those instead of the associations. This way I can trigger a workflow. However don't know how to create a connection in JS.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 ajax/dwr 来实现此目的。虽然你必须在 javascript 中创建连接是非常阴暗的。如果提供原因或用例,可能会有更多帮助。
Try using ajax/dwr for this purpose. Although it is very shady that you have to create a connection in javascript. could help more if a reason or use case is provided.