How to use variable inside a string?

Hi,

I have a variable called payload that I defined in the initiation of the workflow. I want to access it inside a string. How to do that?

https://api.github.com/repos/test/$payload.repoName/contents/.github/workflows/example.yaml → use “$payload.repoName” here.

image

Defined the variable here.

Hi @brian.kodikara, you would have to click on the fx icon and use a FEEL expression. Inside the FEEL expression you can access process variables like this:

="https://api.github.com/repos/test/" + repoName + "/contents/.github/workflows/example.yaml" 
1 Like