Save time building your automation in Tray.io by using proven connector snippets into your workflow.
Copy and paste snippets with the New Workflow Builder in Tray.io!
Force Proper Case
The text-helper function ‘proper case’ only changes the first character of each word in a string. Example: ‘my tEXT’ becomes ‘My TEXT’.
To force only the first letter of each word to be capitalized, first call ‘lower case’ followed by ‘proper case’. This basic snippet chains those two calls together and connects the input of the second step to the output of the first step. The example becomes “My Text” with this snippet.
Version: 1.0
Level: Basic
Asana Pagination
Use case: get all tasks in a given project. Asana’s API handles long results with pagination with limit of 100 items per page and a next_page attribute; see the documentation. Advanced Search in Asana is the exception, and is covered with a separate snippet. Use this snippet when you are expecting a large number of results from Asana.
Version: 1.1
Level: Intermediate
Asana Search Pagination
Asana’s Search API handles pagination differently from other API calls, and the documentation notes that you have to handle search results specially in order to read all values. This Tray.io snippet loops through a search, sorted by Created_at, and loops through the results. It handles incrementing the Created_at value to grab the next 100 results. This snippet assumes all tasks in the search results were created after January 1, 1970.
Version: 0.2
Level: Advanced
Asana Check Email & Follow
Checks if an email address is an active user in Asana and then either adds that user as a follower to a task or sends an email with a link to the task. Optional steps included to handle multiple tasks in one email.
Version: 1.0
Level: Basic
Asana Check Email & Follow
Lorem ipsum
Share Your Feedback
What connectors do you want to see snippets for?
Are you interested in sharing your own code snippets for others to use?
If you’d like a response, please include your email address.
About Tray.io & Workflow Garden
Tray.io is a powerful low-code automation platform with an easy-to-use drag and drop interface.
Workflow Garden was born from an idea to increase the shareability of Tray.io code. Workflow Garden is being built by Anthony Tamalonis and is not affiliated with Tray.io. My goal is to help build a community around Tray.io and to facilitate the sharing of code snippets. I’ve been building workflows in Tray since mid-2020 and was a LabVIEW developer for 10 years before that.
Roadmap
Beta launch w/ working snippets and explainer video
Finish beta w/ 30+ code snippets
Organize snippets into pages by connector, use-case, and complexity
Post a full workflow .json file
Post community-authored snippets
Search for snippets
Display stats for number of times snippet is used
Add user comments or hearts/stars/diggs
Sign-in w/ Google or Etherium login.xyz
Offer advanced workflows/snippets for sale
Snippets to github for version control
