Flow Designer body object with keys containing dashes not supported?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 12:47 PM
I have a flow in flow designer that receives a body containing keys like "name": { "en-CA": "My Name", "fr-CA" "Mon Nom" }. When I try to create the body mapping in designer for the label it accepts it but it renames the name of that field to "en_CA" and "fr_CA" . This causes the flow to not see the passed data.
Is there a way to configure it so it works with keys containing a dash?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 07:39 PM
please share screenshots of how have you configured that
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2025 06:29 AM
Here is a screenshot of the situation:
Here is a screenshot. It forces the name to be fr_CA and en_CA and it show's up like that after running tests as what is expected in the body. This is causing it to not see the real field that is en-CA in my payload.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2025 07:42 AM
and then the payload data appears in the logs like
and my payload aws body: {
"name": {"en-CA":"name", "fr-CA": "nom"}
}
but i want it to be fr-CA and en-CA.... Why is it not allowing me to have fields like that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-29-2025 10:12 PM
Hi @lbigras
Can you Please share the script snapshot for more reference?
If my response finds helpful, please indicate its helpfulness by selecting Accept as Solution and Helpful.
Thanks,
Vaibhav Nikam