Hi, I'm still pretty new to creating custom Data Actions. I am trying to connect to our warehouse tracking API via a data action, but am receiving the error: Flatten: Too many results matched criteria..
This thread might get you going in the right direction:
The goal was to make data actions easy to use, and one of those simplifying assumptions was to consider anything other than 1 result as a failure. Getting flattened list of results back can be difficult or even impossible to correctly handle in architect, so we don't support that by default. There are a variety of ways it can be handled, for example the whole JSON response can be escaped an passed back to architect like is discussed here:
Hi Jason, long time no talk good to hear from you.
So based on based on the articles you sent and some good ole trial and error, I revised the output contract and added the translationMap and successTemplate and it appears to be working now.
Great to see you on Genesys Cloud! Glad I got you close enough that you could get this wrapped up. Please let me know if there was any documentation or UI improvements that would have made this easier to figure out.