Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to search a string variable in Groovy for a specific part of a string.

Summary:

How to search a string variable in Groovy for a specific part of a string.

Content:

We're currently using an pipeline that triggers everyday and processes the files that have been placed in the openbatch folder in Data Exchange. However, the pipelines is triggered every day and thus creates a folder every day. Even though there is no file to process.

What I want to do is to trigger it only if there are files in the relevant folder. I was thinking by launching a get request to retrieve all the files in application, which works. But the result is a variable with all the details of all the files. I would like to filter only on files which have a specific name. I.e., which start with "inbox/batches/openbatch/…"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!