修改Azure逻辑应用程序以处理关键字 [英] Modify Azure logic app to process keywords

查看:84
本文介绍了修改Azure逻辑应用程序以处理关键字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 - 我正在尝试修改处理推文的逻辑应用程序。 这有效,但我想添加关键字。 当我在检测到情绪后放置关键字阶段时会导致一些问题。  

Hi - I am trying to modify my logic app below which processes tweets.  This works but I want to add in keywords.  When I put the keywords stage in after detect sentiment it causes some issues.  

这是因为它挑选了多个关键字,因此它会将多行放入SQL数据库,而不是将所有关键字保存在一个字段中。 我有什么想法可以做到这一点吗? 非常感谢。 

This is because there are multiple keywords it picks out and so it then puts multiple rows into the SQL database rather than keeping all the keywords together in one field.  Any ideas how I could do this?  Thanks v much. 

推荐答案

嗨马修 - 只是想在这里更好地了解你的情景。当您添加更多关键字时,我相信触发器会在您了解到已发布的新推文与您提供的其中一个关键字时启动您的LA工作流程。
换句话说,每个推文有1个工作流实例,只有一个关键字。如果使用您在触发器中提供的
两个或更多关键字发布推文,则可能会导致数据库中出现重复条目​​。您正在观察此行为吗?

Hi Matthew - just trying to understand your scenario better here. As you add more keywords, i believe the trigger will fire your LA workflow whenever it learns that a new tweet was posted with one of the keywords that you have supplied. In other words, 1 workflow instance per tweet with one keyword. This can result in duplicate entries in your DB if a tweet is posted with two or more of the keywords that you've supplied in your trigger. Is this behavior that you're observing?

如果是这样,目前,无法在触发器配置中通过多个关键字定位推文。如果/当相同的推文已经注册时,您可能必须在工作流程中创建一个中止工作流程的额外步骤 - 您可以通过推文ID将
关联起来执行此操作。

If so, presently, it is not possible to target a tweet by multiple keywords within the trigger configuration. You may have to create an additional step in your workflow that aborts the workflow if/when same tweet is already registered - you can probably correlate by tweet ID to do this.

这篇关于修改Azure逻辑应用程序以处理关键字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆