I have a scenario that ends in a custom API to do a POST call.
It's throwing an occasional "[422] Invalid Parameter" error. Apparently, some users are pasting control characters (namely TAB) into task names and when fusion throws them into the JSON response it's failing.
I've tried using the ascii() function, which seems to strip the character out, but the error is still being thrown, which I don't understand at all.
Thoughts?
Solved! Go to Solution.
Views
Replies
Total Likes
Fair enough.
2 options:
[^a-zA-Z0-9\.\-\(\)\[\]\{\}'":;\/,\-_\+ ]
Views
Replies
Total Likes
Try Trim()?
That should take care of whitespace - not sure about other non-printing characters
Views
Replies
Total Likes
Trim() only takes care of the beginning and end of the string, the ones I'm dealing with are in the middle.
Views
Replies
Total Likes
Fair enough.
2 options:
[^a-zA-Z0-9\.\-\(\)\[\]\{\}'":;\/,\-_\+ ]
Views
Replies
Total Likes
The regex worked, thank you.
Views
Replies
Total Likes