Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
In http response I am getting IDs and codes. Each id will have multiple codes. now i need to store the code with respective Id in table. How to do it?
Discussion posts and replies are publicly visible
Are the Ids and codes coming as arrays/lists in the JSON response (like id: 123, codes: ["A", "B", "C"]), or are they coming as separate flat rows?If you assume like this,
a!localVariables( local!httpResponse: { { id: 101, codes: { "A1", "A2", "A3" } }, { id: 102, codes: { "B1", "B2" } }, { id: 103, codes: { "C1", "C2", "C3", "C4" } } }, local!flattenedData: a!flatten( a!forEach( items: local!httpResponse, expression: a!localVariables( local!currentId: fv!item.id, a!forEach( items: fv!item.codes, expression: { id: local!currentId, code: fv!item } ) ) ) ), local!flattenedData )
Please do not make us make assumptions about what your problem actually is and provide more details.