# Twitter out result output

**URL:** <https://discourse.nodered.org/t/twitter-out-result-output/32584>\
**Category:** Feature Requests\
**Created:** [8 September 2020 09:01 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584 "2020-09-08T09:01:21Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [8 September 2020 09:01 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/1 "2020-09-08T09:01:21Z")

</div>

It would be nice to have the output pin from "Twitter Out" node, just to capture the response from Twitter API for further processing.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 September 2020 09:34 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/2 "2020-09-08T09:34:15Z")

</div>

what further processing ? if there is an error it will be reported and can be caught by the catch node.

---

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [8 September 2020 10:49 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/3 "2020-09-08T10:49:20Z")

</div>

Yes, that's correct.  
I have a flow, however, where one message is sent to several endpoints, Twitter is one of them. So I am using http endpoint to send the data to Node-Red, the data is split into few paths, and I wait for results (using join-wait node) to combine all the results and send the combined status back to the calling application.  
But how do do that with the Twitter-Out? On error, I have a message to pass back, but on success? Twitter-Out is a dead end. I simply need a confirmation the operation went well for my aggregation to work.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [8 September 2020 11:57 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/4 "2020-09-08T11:57:25Z")

</div>

Nodes can implement the done call which can then be picked up by the complete node. But it is a relatively new feature and not all older nodes implement it.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 September 2020 12:29 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/5 "2020-09-08T12:29:28Z")

</div>

Does it give a status output on completion?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [8 September 2020 12:39 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/6 "2020-09-08T12:39:05Z")

</div>

The node does not update status on a successful update.

The fix will be to update the node to support the Complete node as @dceejay described - its the whole reason the Complete node was introduced.

---

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [8 September 2020 12:41 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/7 "2020-09-08T12:41:30Z")

</div>

Twitter out node? No, it does not, that's the problem.

---

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [8 September 2020 12:48 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/8 "2020-09-08T12:48:46Z")

</div>

What I meant Twitter node does not work with the Complete node yet.  
Anyway, thank you very much for your support so far.

---

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [8 September 2020 13:29 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/9 "2020-09-08T13:29:40Z")

</div>

One more thing that is quite important is to get the reply from Twitter - to obtain the tweet id.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [8 September 2020 14:57 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/10 "2020-09-08T14:57:50Z")

</div>

Are you sure there is no status output on completion? Looking at the code it appears to set the status to tweeting when it starts sending and clears it (or sets it to the error state) on completion. So you should be able to use that fact that it goes to tweeting and then back to clear to indicate successful completion.

---

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [10 September 2020 09:50 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/11 "2020-09-10T09:50:01Z")

</div>

Tried to set up a 'Complete' node, but definitely it does not work. Twitter node v 1.1.6

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 September 2020 10:17 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/12 "2020-09-10T10:17:49Z")

</div>

No, we knew that, you just have to look at the code to see that it is not implemented. The Status method I suggested should work I think.

---

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [10 September 2020 10:24 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/13 "2020-09-10T10:24:26Z")

</div>

OK, so I used a 'status' node finally. Succes is when msg.status.text == null and there is no msg.error property. If a better condition can be set up, please let me know.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 September 2020 15:32 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/14 "2020-09-10T15:32:51Z")

</div>

It might be advisable I think to check that it goes to the tweeting state first, otherwise you might get a false event.

---

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [10 September 2020 15:36 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/15 "2020-09-10T15:36:32Z")

</div>

This is what I do, checking states one by one. Pretty ugly solution, however.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [10 September 2020 15:55 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/16 "2020-09-10T15:55:29Z")

</div>

> [@PlkMarudny](#):
>
> Pretty ugly solution, however.

Certainly. A better one would be to submit a PR adding the Complete feature to the node 🙂

---

<div class="post-metadata">

**Author:** ![PlkMarudny](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/plkmarudny/32/28315_2.png) [@PlkMarudny](https://discourse.nodered.org/u/PlkMarudny)\
**Post date:** [13 September 2020 11:46 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/17 "2020-09-13T11:46:19Z")

</div>

Ok, will do.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 November 2020 11:46 UTC](https://discourse.nodered.org/t/twitter-out-result-output/32584/18 "2020-11-12T11:46:31Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
