• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

New Phone Number

Vernon27

Member
Hello All,

Current version of Tasker is installed on a Galaxy Note 3 (SN-900V). I have a new phone number and want to notify selected contacts of the new number. Here is what I will like to create in Tasker:

"Hello Elizabeth, please take note of my new number: 555-555-5555. The old number: 444-444-4444 is no longer valid and should not be used. Thank You."

NOTE: Elizabeth will be replaced by the names of the other contacts. For example, if I select Mary, James, and Elizabeth I want Tasker to send the same message to all contacts but replacing the names with the appropriate contact. In other words it is similar to a mail merge feature in Word.

Thanks for your help.

Vernon
 
Hello Group,

I have solved this issue.

Hello All,

Current version of Tasker is installed on a Galaxy Note 3 (SN-900V). I have a new phone number and want to notify selected contacts of the new number. Here is what I will like to create in Tasker:

"Hello Elizabeth, please take note of my new number: 555-555-5555. The old number: 444-444-4444 is no longer valid and should not be used. Thank You."

NOTE: Elizabeth will be replaced by the names of the other contacts. For example, if I select Mary, James, and Elizabeth I want Tasker to send the same message to all contacts but replacing the names with the appropriate contact. In other words it is similar to a mail merge feature in Word.

Thanks for your help.

Vernon
 
I'm glad you got it sorted, but could you give us a brief description of how you managed it? I've spent the past week thinking about your request but unable to create a solution. I'd love to know what worked. :)
 
I'm glad you got it sorted, but could you give us a brief description of how you managed it? I've spent the past week thinking about your request but unable to create a solution. I'd love to know what worked. :)
Hello Tom,

Here is the what I have so far.

Essentially, I read the lines in a file; then a split the line into two variables. Then insert the name and the phone number in a template text message. Let me know if u need to know more.

<TaskerData sr="" dvi="1" tv="4.6u3m">
- <Task sr="task57">
<cdate>1423268536186</cdate>
<edate>1423516241087</edate>
<id>57</id>
<nme>New Phone Number</nme>
<pri>10</pri>
- <Action sr="act0" ve="7">
<code>415</code>
<Str sr="arg0" ve="3">temp/Contacts - Test.CSV</Str>
<Str sr="arg1" ve="3" />
<Str sr="arg2" ve="3">%name</Str>
</Action>
- <Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%name</Str>
<Int sr="arg1" val="1" />
</Action>
- <Action sr="act2" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%name</Str>
<Str sr="arg1" ve="3">,</Str>
<Int sr="arg2" val="0" />
</Action>
- <Action sr="act3" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%name1</Str>
<Int sr="arg1" val="1" />
</Action>
- <Action sr="act4" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%name2</Str>
<Int sr="arg1" val="1" />
</Action>
- <Action sr="act5" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%message</Str>
<Str sr="arg1" ve="3">Hello %name1, this is Vernon. Please make note of my new number: 301-555-7777upload_2015-2-10_15-5-28.png. The old #: 357-890-6690upload_2015-2-10_15-5-28.png is no longer valid. Thank You. @Vernon</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
</Action>
- <Action sr="act6" ve="7">
<code>41</code>
<Str sr="arg0" ve="3">%name2</Str>
<Str sr="arg1" ve="3">%message</Str>
<Int sr="arg2" val="0" />
</Action>
- <Action sr="act7" ve="7">
<code>135</code>
<on>false</on>
<Int sr="arg0" val="0" />
<Int sr="arg1" val="1" />
<Str sr="arg2" ve="3" />
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
<lhs>%name</lhs>
<op>3</op>
<rhs>EOF</rhs>
</Condition>
</ConditionList>
</Action>
</Task>
</TaskerData>

The site does not allow me to upload the file. But I think u can save it into text editor and import it into Tasker.

Vernon
 
Hello All,

Here is the finished product.

New Phone Number (57)
A1: Read Line [ File:temp/Resend DL List.CSV Line: To Var:%name ]
A2: Variable Split [ Name:%name Splitter:, Delete Base:Off ]
<Check if %name2 is equal to Nature's cell number>
A3: If [ %name2 ~ 3041239999 ]
<SMS to Nature>
A4: Send SMS [ Number:3041239999 Message:Hello Nature, this is SnowChill. Please make note of my new number: 890-600-5556. The old #: 900-123-9000 is no longer valid. Thank You.

@SnowChill Store In Messaging App:Off ]
<Loop as long as variable %name does not match end of file.>
A5: Goto [ Type:Action Number Number:1 Label: ] If [ %name !~ EOF ]
A6: End If
<Check if %name2 equals Niqua's cell number>
A7: If [ %name2 ~ 6791234000 ]
<SMS to Niqua>
A8: Send SMS [ Number:6791234000 Message:Hello %name1, hope ur day is going well. Please make note of my new #: 890-600-5556. The old #: 900-123-9000 is no longer valid.

@SnowChill Store In Messaging App:Off ]
<Loop as long as variable %name does not match end of file.>
A9: Goto [ Type:Action Number Number:1 Label: ] If [ %name !~ EOF ]
A10: End If
<Check if %name2 equals Amanda's cell number>
A11: If [ %name2 ~ 6798769123 ]
<SMS to Leets>
A12: Send SMS [ Number:6798769123 Message:Hello %name1, please lock in my new new #: 890-600-5556. The old #: 900-123-9000 is no longer valid.

@SnowChill Store In Messaging App:Off ]
<Loop as long as variable %name does not match end of file.>
A13: Goto [ Type:Action Number Number:1 Label: ] If [ %name !~ EOF ]
A14: End If
<Setting Generic SMS templates>
A15: Variable Set [ Name:%message1 To:Hello %name1, this is SnowChill. Please make note of my new number: 890-600-5556. The old #: 900-123-9000 is no longer valid. Thank You.

@SnowChill Do Maths:Off Append:Off ]
A16: Variable Set [ Name:%message2 To:Hi %name1, this is SnowChill. I have a new cell #: 890-600-5556. My old cell #: 900-123-9000 is no longer valid. Thank You.

@SnowChill Do Maths:Off Append:Off ]
A17: Variable Set [ Name:%message3 To:Hey %name1, this is SnowChill. Please make note of my new number: 890-600-5556. The old #: 900-123-9000 is no longer any good. Thank You.

@SnowChill Do Maths:Off Append:Off ]
A18: Variable Set [ Name:%message4 To:%name1, this is SnowChill. Hope all is well with u. Please make note of my new number: 890-600-5556. The old #: 900-123-9000 is no longer valid. Thank You.

@SnowChill Do Maths:Off Append:Off ]
A19: Variable Randomize [ Name:%SMStemplate Min:1 Max:4 ]
<Send SMS message>
A20: Send SMS [ Number:%name2 Message:%message1 Store In Messaging App:Off ] If [ %SMStemplate ~ 1 ]
A21: Send SMS [ Number:%name2 Message:%message2 Store In Messaging App:Off ] If [ %SMStemplate ~ 2 ]
A22: Send SMS [ Number:%name2 Message:%message3 Store In Messaging App:Off ] If [ %SMStemplate ~ 3 ]
A23: Send SMS [ Number:%name2 Message:%message4 Store In Messaging App:Off ] If [ %SMStemplate ~ 4 ]
<Loop as long as variable %name does not match end of file.>
A24: Goto [ Type:Action Number Number:1 Label: ] If [ %name !~ EOF ]

Hello Tom,

Here is the what I have so far.

Essentially, I read the lines in a file; then a split the line into two variables. Then insert the name and the phone number in a template text message. Let me know if u need to know more.

<TaskerData sr="" dvi="1" tv="4.6u3m">
- <Task sr="task57">
<cdate>1423268536186</cdate>
<edate>1423516241087</edate>
<id>57</id>
<nme>New Phone Number</nme>
<pri>10</pri>
- <Action sr="act0" ve="7">
<code>415</code>
<Str sr="arg0" ve="3">temp/Contacts - Test.CSV</Str>
<Str sr="arg1" ve="3" />
<Str sr="arg2" ve="3">%name</Str>
</Action>
- <Action sr="act1" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%name</Str>
<Int sr="arg1" val="1" />
</Action>
- <Action sr="act2" ve="7">
<code>590</code>
<Str sr="arg0" ve="3">%name</Str>
<Str sr="arg1" ve="3">,</Str>
<Int sr="arg2" val="0" />
</Action>
- <Action sr="act3" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%name1</Str>
<Int sr="arg1" val="1" />
</Action>
- <Action sr="act4" ve="7">
<code>548</code>
<Str sr="arg0" ve="3">%name2</Str>
<Int sr="arg1" val="1" />
</Action>
- <Action sr="act5" ve="7">
<code>547</code>
<Str sr="arg0" ve="3">%message</Str>
<Str sr="arg1" ve="3">Hello %name1, this is Vernon. Please make note of my new number: 301-555-7777View attachment 82375. The old #: 357-890-6690View attachment 82376 is no longer valid. Thank You. @Vernon</Str>
<Int sr="arg2" val="0" />
<Int sr="arg3" val="0" />
</Action>
- <Action sr="act6" ve="7">
<code>41</code>
<Str sr="arg0" ve="3">%name2</Str>
<Str sr="arg1" ve="3">%message</Str>
<Int sr="arg2" val="0" />
</Action>
- <Action sr="act7" ve="7">
<code>135</code>
<on>false</on>
<Int sr="arg0" val="0" />
<Int sr="arg1" val="1" />
<Str sr="arg2" ve="3" />
- <ConditionList sr="if">
- <Condition sr="c0" ve="3">
<lhs>%name</lhs>
<op>3</op>
<rhs>EOF</rhs>
</Condition>
</ConditionList>
</Action>
</Task>
</TaskerData>

The site does not allow me to upload the file. But I think u can save it into text editor and import it into Tasker.

Vernon
 
Back
Top Bottom