I have created a integration that requires a API POST call.
Everything goes smooth but when certain fields are empty the value {{bundle.inputData.field}} is printed in the DB.
It does not seem to happen for all fields, though - and that’s confusing.
Would you mind posting your code? Maybe some more eyes can help spot the issue.
Note that, when configuring requests in “Form Mode” in the Platform UI there’s an option to omit empty values automatically:
(If you’re working in Code Mode that’s not helpful, but posting here for other readers)
Before turning that on: here is the body of the message {"id":"55322","cars":"","pets":"","city":""}
After turning on those options: here is the body of the message {"id":"55322"}
Note that the empty values are null… not the variable name with curlies, which makes me think something is misconfigured.
Hi Zane, thanks for having the time to look into it. I’m working in Code Mode.
I’ve sorted this by turning the
“field” : “{{bundle.inputData.field}}”
into
“field” : bundle.inputData.field
Awesome! Glad you’re up and running. And thanks for posting the follow up.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.