generate body for each user from function

Hey guys,

I have a function that creates an xml body.
I’d like to adjust my scenario in a way that my function gets called each iteration for each user to have a unique body each time.

Is this possible?

I’ve tried calling the function in .body but the problem is that some variable generated in the function also need to be put in the API url.

for example

`
def potato :String{
a = r.nextInt(10000000)

a + b = potato
return potato
}

`

so potato will be part of the body but I need “a” in my url like /potatoes/a

is there a step in scenarios I can do before the api call to generate this value?