Implement resources in stories

When building workflows in Tines, you'll often need to access the data stored in your resources. Let's explore the different ways to reference resources in your stories, making your stories more dynamic and powerful.

RESOURCE key 

The RESOURCE key provides direct access to your resources from within Tines formulas. This is the most common way to reference resource data in your actions.

For example, if you have a text resource named "notification_email" containing an email address, you can reference it like this in a pill within an action configuration:

RESOURCE.notification_email

When the action runs, it'll return the actual email address value stored in the "notification_email" resource.

INFO key 

The INFO key provides metadata about resources, rather than their actual values. This can be useful for checking resource properties, like its unique ID.

For example, if we need to update your "notification_email" resource's value via our Update Resource API endpoint, we can utilize the INFO key in a pill to pull the resource's ID needed for this endpoint to execute successfully, like so:

INFO.resource.notification_email.id

When the action runs, it'll return the ID value of the "notification_email" resource.

🖐️ Try this: Reference a resource 

Was this lesson helpful?

Built by you,
powered by Tines

Already have an account? Log in.