Is it a bug or do I do something wrong? Try to add parameters to a value field.
Maybe it's very easy, I really don't understand it...
See picture.
This is the return value:
'Lezer is: ${ctx["root"]["request"]["body"].namereader}'
+
#❓・buildship-help
Dit is het resultaat: ${ctx["root"]["request"]["body"].namereader}
This is the result:
Lezer is: ${ctx["root"]["request"]["body"].namereader}Dit is het resultaat: Albert
How can I add the body parameters to a value field?#❓・buildship-help
Solution:Jump to solution
In the first string, you'll require to add back ticks
instead of single quotes ' '. Lezer is: ${ctx["root"]["request"]["body"].namereader}
just like you did in second line. Then it will work.6 Replies
Solution
In the first string, you'll require to add back ticks
instead of single quotes ' '. Lezer is: ${ctx["root"]["request"]["body"].namereader}
just like you did in second line. Then it will work.really? Is that the thing. Never knew there's a difference. 🙂
In back ticks, it will be able to read template literals (variables you pass), in string it won't.
it works. 🙂 🙂 I'll check how to make back ticks.
thanks so much!
Cool, You can also refer to this to learn about template strings usage - https://www.w3schools.com/js/js_string_templates.asp.
Happy to help. 🙂