Google Workflows: How to get part of a string?

656 views Asked by At

In the following workflow I want to return part of a string, for example:

- define:
    assign:
      - value: foobar
- returnValue:
    return: ${value}

This would return foobar how would I return just foo?

1

There are 1 answers

0
Hoda M On

This feature is now supported under the text library.

You can get part of the string using ${text.substring(value), 0, 3}