question

DavidMcCarter-5256 avatar image
0 Votes"
DavidMcCarter-5256 asked AnuragSharma-MSFT answered

Logic App Twitter Connector and Multiple User Names with CosmosDB

Is there a way to have a Logic App or something similar trigger when a tweet is posted by a list of users from Cosmos DB? So many choices and articles, they all show hardcoded search terms. I need some guidance :-)

azure-logic-appsazure-cosmos-db
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

AnuragSharma-MSFT avatar image
0 Votes"
AnuragSharma-MSFT answered

Hi @DavidMcCarter-5256, yes Logic App is one way to do it. You can try below steps to get the desired result through Azure Logic App:


1) Create New Logic App and provide a primary connection account:


13778-image.png


2) Configure the next step in workflow by getting the usernames from all documents in collection. It will be good idea to save the username with '@' prefix, so to match the twitter account names:


13856-image.png


3) Then we need to create another step and loop through the result set from prior step as below:


13767-image.png


4) Finally, we can write the result by creating another document in the 'For Each' container.


Please let me know if this helps or any other information is needed.




If an Answer is helpful, please “Accept Answer” or Up-Vote for the same which might be beneficial to other community members reading this thread.






image.png (13.7 KiB)
image.png (15.9 KiB)
image.png (23.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.