How to call other Twilio function in Twilio function?

47 views
Skip to first unread message

ken-n

unread,
Aug 3, 2020, 4:04:10 AM8/3/20
to Twilio Functions
Hi members.

Could you let me know how to call other Twilio function in one Twilio function?

1.Studio
->Run Function: function1

2.function1
->
 (1) call function2(created in Twilio function).
 (2) get result by function2
 (3) set value that get from result of function2 to function1's response
 (4) return response to Studio.

3.Studio
-> get function1's response. 

Alan

unread,
Aug 3, 2020, 7:50:06 AM8/3/20
to Twilio Functions
Why are you chaining functions rather than have function1 do it all?
Message has been deleted
Message has been deleted

ken-n

unread,
Aug 3, 2020, 12:54:50 PM8/3/20
to Twilio Functions
I want to manage constant value at function2.
On my future plan, I will call function2 other function( function3, function4, etc) to use it that function2 has.

So I'm trying to divide to function1 and function2.

2020年8月3日月曜日 20時50分06秒 UTC+9 Alan:

Nate Smith

unread,
Aug 3, 2020, 12:56:04 PM8/3/20
to Twilio Functions
Use a Dial verb:

twiml.dial({action:'/Other_Function'});
Reply all
Reply to author
Forward
0 new messages