-
Quick help pls. Maybe something simple I can't figure out. How do I pull out a string I send in as a parameter "name" into the cloud code function Im testing with. In the readme file example
If I have a String "name" passed as a parameter, how do I pull it out of the parseRequest object and FooParameters? When I do a dump(parseRequest), the information is nowhere to be seen but if I do a dump(req.content) I do see my "name" parameter there with the expected string. basically, how do I pull out a parameter from a decoded FooParameter? thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Nevermind. I think I misunderstood the instructions in the readme file. I thought for some reason that FooParameters would somehow have the params I send. I just realized that the instructions meant I need to create a new parameter file and place it in the Parameters folder and that FooParameters is the example Parameter file. thanks. |
Beta Was this translation helpful? Give feedback.
Sounds like you figured it out, I used
FooParameters
as an example, but you build all of your parameters in that type and they will be decoded and available in your Function.