# I need help for node-red-huawei-sms 0.1.2 usage

**URL:** https://discourse.nodered.org/t/i-need-help-for-node-red-huawei-sms-0-1-2-usage/99776
**Category:** General
**Created:** [25 November 2025 20:05 UTC](https://discourse.nodered.org/t/i-need-help-for-node-red-huawei-sms-0-1-2-usage/99776 "2025-11-25T20:05:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![nnekov](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@nnekov](https://discourse.nodered.org/u/nnekov)
#### Post date: [25 November 2025 20:05 UTC](https://discourse.nodered.org/t/i-need-help-for-node-red-huawei-sms-0-1-2-usage/99776/1 "2025-11-25T20:05:06Z")

</div>

Hello friends,  
I need some help regarding node-red-huawei-sms 0.1.2. I would like to set the recipient's phone number dynamically by using the `msg.phone` property ( e.g to to reply to sender of SMS). I've tried various variants, but without success. Could somebody help me to resolve this problem?

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [25 November 2025 20:26 UTC](https://discourse.nodered.org/t/i-need-help-for-node-red-huawei-sms-0-1-2-usage/99776/2 "2025-11-25T20:26:37Z")

</div>

Please share details of what you've actually tried and details of how it failed, including error messages.

I've never used the node, but a quick look at the source code says that a `msg.phone` should work, but it MUST be a string, not a number and NodeJS has a tendency to try and coerce things that look like number to numbers.

I suggest you test by injecting full international numbers (e.g. with a leading +country code) and possibly try adding a function node that does something like

```auto
msg.phone = msg.phone + ""

```

---

<div class="post-metadata">

### Author: ![nnekov](https://avatars.discourse-cdn.com/v4/letter/n/bb73d2/32.png) [@nnekov](https://discourse.nodered.org/u/nnekov)
#### Post date: [25 November 2025 21:11 UTC](https://discourse.nodered.org/t/i-need-help-for-node-red-huawei-sms-0-1-2-usage/99776/3 "2025-11-25T21:11:09Z")

</div>

Thank You @hardillb !

An advice You gave resolved the problem and everything works now!  
My mistakes:

1. I've tried to use msg.payload.phone instead of msg.phone
2. I've putted a phone number as a number, not as a string.

Thank You again for the help!

---

<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: [9 December 2025 21:11 UTC](https://discourse.nodered.org/t/i-need-help-for-node-red-huawei-sms-0-1-2-usage/99776/4 "2025-12-09T21:11:28Z")

</div>

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