ELFileBody dynamic parameters

Hi everybody,

I would like to use the ELFileBody function of gatling to post dynamic parameters for a specific request.

My request is very simple, just the creation of a new events on a JSON Calendar. But i don’t want to always create the same event.

Is that possible to have dynamic params. I’ve read about it but i don’t really understand how it works with scala.

Here is the scala code

//Validation Form New Event Agenda
.resources(http(“Validation Form Nouveau RDV I Agenda”)
.post(uri1 + “/agenda/ideoFront?controller=rdv.Rdv&webContext=%7B%22clePatien…”)

Here is the request14.txt body


“text”:“Conseil en SI de santé”,


Thanks a lot for your help,