I have the following output contacts defined, when I try to store items like createdon@OData.Community.Display.V1.FormattedValue, it won't allow me to create a variable or select any:
I wonder if the dot's in the property names might be causing some problem with the schema flattening. It might be best to extract those values out and build a result of simple properties.
You have properties with a period in the name. Example: createdon@OData.Community.Display.V1.FormattedValue. He's saying to change your service to not send periods in property names. That's generally a bad practice since periods are reserved characters in most languages. Sticking with alphanumeric characters is a general best practice for property/variable naming.
I was suggesting using a response translationMap and successTemplate to map the values so names, and then build a result using those names that is simpler. Some of the built in
Giving that a try, now it is throwing an error in the translation map process:
"code": "invalid.extraction.into.translation.map",
"message": "There was an issue extracting a value from the remote endpoint's response into the response translation map. Cause: Missing property in path $['createdon@OData']",
The dot notation is messing up the translation maps JSON path processing, but we found a way around that. A value can be looked up with ['attribute_name'] which will keep it from processing the dot notation.
We testing this with a mock web site and a test action.
{
"translationMap": {
"createdonFormatted": ".['createdon@OData.Community.Display.V1.FormattedValue']",
"subject": ".subject",
"ownerid": ".['ownerid_value@OData.Community.Display.V1.FormattedValue']",
"directioncode": ".['directioncode@OData.Community.Display.V1.FormattedValue']"
}
I tried this and it fixed the recent issues. The script is still not allowing me to create a variable to store this data in. I have to shift gears for a day or two but I plan on coming back to this. I will update this if I figure it out or make more progress. Thanks for all of your help.