MarketplaceStudioActivityTroy Web - Twilio API Activities

Create your first automation in just a few minutes.Try Studio Web

Troy Web - Twilio API Activities

Troy Web - Twilio API Activities

by Troy Web Consulting

StarStarStarStarStarStarStarStarStarStar

0

Activity

Downloads

<100

I am getting the below error message when using the Twilio Scope activity. I did exactly how it was showed in the 1st 

video. 

Twilio Scope: Method not found: 'Void Twilio.Clients.TwilioRestClient..ctor(System.String, System.String, System.String, S

ystem.String, Twilio.Http.HttpClient)'.

Prasanth Thiagarajan
Posted 4 years ago

Hi Joseph,

Thanks a lot for your help and the package is really benefitial for two way traffic.

Now I am able to print all the Parameters of the message. Just wanted to make sure this activitycan be used in Production ?

Thank you

Joseph Iaquinto
Posted 4 years ago ago

Glad I was able to help. 

We license this under the Apache 2.0 license so you may use this for commercial purposes.

Prasanth Thiagarajan
Posted 4 years ago

Hi Joseph, 

I tried updating For Each Activities Argument Type = System.Linq.Enumberable and Input Values for the For each = ResourceSet Variable from Get Messages. I placed a Log message within For each to print and got error Unable to cast object of type 'Twilio.Rest.Api.V2010.Account.MessageResource' to 'System.Linq.Enumerable'. 

Followed the reference from https://www.twilio.com/docs/sms/api/message-resource# and https://www.twilio.com/docs/sms/api/message-resource?code-sample=code-read-list-all-messages&code-language=C%23&code-sdk-version=5.x

But no help. 

I really appreciate your inputs and suggestion to utilize Get Message/Get Messages functionality.

Thank you

Joseph Iaquinto
Posted 4 years ago ago

Try setting the TypeArgument property of the for each activity to MessageResource and the values property to your ResourceSet.

For each can iterate any IEnumerable that you put into the values argument, this could be a list, ResourceSet, or any other type that implements IEnumerable. Think of ResourceSet as a special kind of list and the values in that list are of type MessageResource.

Joseph Iaquinto
Posted 4 years ago ago

Try setting the TypeArgument property of the for each activity to MessageResource and the values property to your ResourceSet.

For each can iterate any IEnumerable that you put into the values argument, this could be a list, ResourceSet, or any other type that implements IEnumerable. Think of ResourceSet as a special kind of list and the values in that list are of type MessageResource.

Prasanth Thiagarajan
Posted 4 years ago

Hi Joseph,

I am trying to use Get Message and Get Messages Activities for a use case

Could you please help me how to display the available values in Message Resource and ResourceSet

I need to display and see teh list of messages available associated with my Twilio account.

Appreaciate your help.

Thanks,

Prasanth Thiagarajan

Joseph Iaquinto
Posted 4 years ago ago

Hey Prasanth,

Have you tried using the output ResourceSet as the enumerable in a for-each activity? 

The difficulty with ResourceSet is the message resources are paged from the Twilio API, so there is some background logic there to request messages from the API when reaching the end of the page. In their example here https://www.twilio.com/docs/sms/api/message-resource?code-sample=code-read-list-all-messages&code-language=C%23&code-sdk-version=5.x they show how to use it in a normal for-each loop. 

Make sure you do all of this inside the twilio scope as the API client only exists inside of it.

vinesh aare
Posted 4 years ago

Can GetMessages activity return List instead of Resourceset?

We are unable to loop through each MessageResource from ResourceSet list.Please let me know there is an alternative.

vinesh aare
Posted 4 years ago

Thanks for the quick reply.

Are you referring to Activities metioned in the below doc link? 

https://docs.uipath.com/marketplace/docs/twilio-scope

Can i read a message (or messages) from a twilio account using UIPath bulitin Activities?

Joseph Iaquinto
Posted 4 years ago ago

Currently, I believe that package only supports sending SMS, not reading SMS from Twilio.

vinesh aare
Posted 4 years ago

This Component works great!! Thanks.

Can we use this for Prod environment?

Joseph Iaquinto
Posted 4 years ago ago

Hey Vinesh!

Thank you for using the activity package! We license this under the Apache 2.0 license so you may use this for commercial purposes.

Let me know if you have any issues with the activities and I can work with you in resolving them and making a new version of the package if necessary.

UiPath also created a Twilio Activities package recently which is more officially supported but contains fewer activities (Fax and MMS not included).

Publisher

Troy Web Consulting

Visit publisher's page

Trusted Source

License & Privacy

Apache

Privacy Terms

Technical

Version

1.1.0

Updated

June 4, 2020

Works with

Studio: 20.4 - 22.10

Certification

Silver Certified

Application

Twilio

Support

UiPath Community Support

Resources