Have flow wait for incoming confirmation SMS

Post your questions and help other users.

Moderator: Martin

Post Reply
webo
Posts: 4
Joined: 24 Sep 2013 10:57

Have flow wait for incoming confirmation SMS

Post by webo » 25 Sep 2013 14:15

I'm working on a flow that submits a command to the phone network and, if successful, would receive an SMS confirmation.

How can I have my flow wait for the SMS confirmation, detect the confirmation SMS, and continue the flow?

So far from what I've seen, receiving an incoming SMS is considered a trigger and there isn't an option to create a trigger within a flow that already has a trigger.

Would I need to create 2 flows? (one for the first part of the command, and another for receiving the confirmation SMS)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Have flow wait for incoming confirmation SMS

Post by Martin » 25 Sep 2013 17:54

Yes, two flows are required in this case.

Something like this:
Flow1:
-...
-action ' Set Flow State: Enable Flow2'
-action 'Send SMS'

Flow2:
-trigger 'SMS Received: ...'
-action 1, 2, 3
-action ' Set Flow State: Disable Flow2'

Enabling/disabling Flow2 is only necessary when the expected SMS does not contain a text suitable as a filter for the 'contains text' option in the SMS trigger.

Post Reply