# Newbie needs help: Reading msg: String status from Azure Save Blob

**URL:** <https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432>\
**Category:** General\
**Created:** [8 February 2020 23:26 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432 "2020-02-08T23:26:44Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![xterix](https://avatars.discourse-cdn.com/v4/letter/x/e9a140/32.png) [@xterix](https://discourse.nodered.org/u/xterix)\
**Post date:** [8 February 2020 23:26 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/1 "2020-02-08T23:26:44Z")

</div>

Hello All.

I do need a bit of help getting the status from Azure Blob Storage node. I do want to rename the file if it's uploaded properly. But I'm not getting able to get the msg.string to process it.  
Tom. ![Captura1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/19eadaadb2795aaf72729b6b67a172e55f04db80.jpeg)  
 ![Captura](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/6775972432f73ddc0d0c22a2dfbf3396a745e158.jpeg)

Please, can you help me moving that status looking if string uploaded exist on the phrase.

Thank you.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 February 2020 00:39 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/2 "2020-02-09T00:39:20Z")

</div>

I'm certain you could do this using `fs` if you enable it in setting.js however I typically use [https://flows.nodered.org/node/node-red-contrib-fs-ops](https://flows.nodered.org/node/node-red-contrib-fs-ops) for file operations.

---

<div class="post-metadata">

**Author:** ![xterix](https://avatars.discourse-cdn.com/v4/letter/x/e9a140/32.png) [@xterix](https://discourse.nodered.org/u/xterix)\
**Post date:** [9 February 2020 00:52 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/3 "2020-02-09T00:52:26Z")

</div>

Thank you Steve.  
Yeahh. I can use node-red-contrib-fs-ops to move / copy the file. But what I'm strugling is on reading the output from Azure Save Blob Storage.

Regards

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 February 2020 01:20 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/4 "2020-02-09T01:20:59Z")

</div>

I haven't used that node so have no idea what it gets or what it does with what it gets.

For example, does it save direct to file system? Does it send an array of bytes or a nodes buffer in `msg.payload` in its output? Does it send an object in `msg.payload` with various properties set describing the output?

Perhaps if you execute it and screen shot the output here?

Tbh, I thought you had managed to get a file written and were trying to simply rename it (this why I posted the fs ops node)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 February 2020 01:24 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/5 "2020-02-09T01:24:39Z")

</div>

Actually just looked again at your screenshot showing a file name. Is that written anywhere on your file system or is it telling you that's the file it's retrieved?

Is your debug node set to "complete msg"? Perhaps you could expand the full msg in debug sidebar and send a screenshot showing the entire content of the msg output from the azure node?

---

<div class="post-metadata">

**Author:** ![xterix](https://avatars.discourse-cdn.com/v4/letter/x/e9a140/32.png) [@xterix](https://discourse.nodered.org/u/xterix)\
**Post date:** [9 February 2020 08:38 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/6 "2020-02-09T08:38:04Z")

</div>

Hello Again and thanks per replying.

Debug node is set to "complete msg". No msg.payload.

That is all that is shows:

![Captura](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/7/6775972432f73ddc0d0c22a2dfbf3396a745e158.jpeg)

I've review three azure blob nodes and all send almost the same output.

I would want to know to "change" the msg that returns as string the outout to msg.payload.

Thanks

---

<div class="post-metadata">

**Author:** ![xterix](https://avatars.discourse-cdn.com/v4/letter/x/e9a140/32.png) [@xterix](https://discourse.nodered.org/u/xterix)\
**Post date:** [9 February 2020 08:38 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/7 "2020-02-09T08:38:38Z")

</div>

It says that file has been uploaded to Azure blob

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 February 2020 08:43 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/8 "2020-02-09T08:43:51Z")

</div>

Ah my apologies, I assumed you were getting a file from Azure and wished to rename it locally.

Let me take a guess at what you're trying to do: you want to send a file or data to Azure then rename it? Is that correct?

If so, is this a file you have on your node red machine? Or is it data you have/generate in node red that you send to Azure that ends up in a file?

I guess what I'm asking is, where did that file name come from? Is it a property value sent into the azure node? Can you put a debug node before (complete msg) and show me the output?

---

<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:** [9 February 2020 09:28 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/9 "2020-02-09T09:28:55Z")

</div>

If that really is the complete msg that node sends then it is a badly behaved node and needs to be fixed. Nodes must return an object not a string.  
Though no-one has touched the node for 2 years so I suspect raising an issue would not get any response.

---

<div class="post-metadata">

**Author:** ![xterix](https://avatars.discourse-cdn.com/v4/letter/x/e9a140/32.png) [@xterix](https://discourse.nodered.org/u/xterix)\
**Post date:** [9 February 2020 16:24 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/10 "2020-02-09T16:24:31Z")

</div>

Thank you both.

@Steve.  
What i want is:  
I have a folder to upload files to azure storage blob. Lets call this export folder.

I do want to upload each of those files and then move to a processed folder at source device.

Hope this clarifies. Then I want to capture the output to decide if file needs to be moved or not.

About the output msg. Yes. That is all.

Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [9 February 2020 22:33 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/11 "2020-02-09T22:33:08Z")

</div>

So isn't it a simple case of once the transfer to Azure is complete, you move the source file? You can achieve that using the fs nodes.

Without seeing debug output of full msg each stage of your process, or seeing your full flow it's difficult to give specific advice other than you'll likely need to copy & manipulate the file name path to set the "move to" destination before calling the move file operation

---

<div class="post-metadata">

**Author:** ![xterix](https://avatars.discourse-cdn.com/v4/letter/x/e9a140/32.png) [@xterix](https://discourse.nodered.org/u/xterix)\
**Post date:** [9 February 2020 23:42 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/12 "2020-02-09T23:42:24Z")

</div>

Thank you guys.

I've been reviewing the node code and have modified it to send payload. At present I do receive the filename as msg.payload when upload is succesfull.

I've more than enough with that.  
Regards

---

<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:** [23 February 2020 23:56 UTC](https://discourse.nodered.org/t/newbie-needs-help-reading-msg-string-status-from-azure-save-blob/21432/13 "2020-02-23T23:56:33Z")

</div>

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