# Sms notifications, to dynamic mobile number

**URL:** <https://forum.inductiveautomation.com/t/sms-notifications-to-dynamic-mobile-number/22571>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [February 14, 2019, 3:16pm UTC](https://forum.inductiveautomation.com/t/sms-notifications-to-dynamic-mobile-number/22571 "2019-02-14T15:16:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pawel.kondol](https://avatars.discourse-cdn.com/v4/letter/p/96bed5/32.png) [@pawel.kondol](https://forum.inductiveautomation.com/u/pawel.kondol)\
**Post date:** [February 14, 2019, 3:16pm UTC](https://forum.inductiveautomation.com/t/sms-notifications-to-dynamic-mobile-number/22571/1 "2019-02-14T15:16:11Z")

</div>

Hello,

I have sms hardware and notification pipeline setup and working perfect.

What I want is to send sms to number assigned in tag string value.

So in general I would like to replace name in the notification pipeline based on tag.  
I used Calculated Roaster with the following code:

```
visitor_sms = system.tag.read("Manual Tags/Reception/Visiting_Phone").value
user1 = {"username":"bob", "sms":[visitor_sms]}

roster = [user1]
return roster

```

and it is not working.

However this one is working fine:  
visitor\_sms = “0871234567”

```
user1 = {"username":"bob", "sms":[visitor_sms]}

roster = [user1]
return roster

```

So my issue is to properly read value from the tag.

when i tried this in the script console it can read the data from the tag.

input:  
visitor\_sms = system.tag.read(“Manual Tags/Reception/Visiting\_Phone”).value  
print visitor\_sms  
output:  
\_\>\>\>  
0871234567  
\_\>\>\>

Any help will be much appreciate.

Regards  
Pawel
