Flow Designer body object with keys containing dashes not supported?

lbigras
Tera Contributor

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?

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@lbigras 

please share screenshots of how have you configured that

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Here is a screenshot of the situation:

lbigras_1-1738247370091.png

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.

lbigras
Tera Contributor

and then the payload data appears in the logs like

lbigras_0-1738251617435.png

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?

Vaibhav_Nikam
Tera Guru

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