Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. 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.
I'm having some issues understanding how to use indexes into a forEach taking the items from a expression rule.
I'll explain my problem a little bit deeper; I'm trying to get some of the properties from the RecordType "Anomalie", i would like to use the expression rule with get me all of the anomalies linked to a specific pension by the pensionid, and get the description, the name, the action related to it. But i'm having trubles indexing these properties once I call the expression rule. When I try to use fv!item.description into the description rich text field it seems like it doesn't recognize the object as a record type.
I pasted the code snippet for the forEach i have in the interface, does anyone had some similar issues and may give me suggestions on what to try to make it work? Thank you so much!!
(my finished product should be a card for each anomaly found linked to the record Beneficiary, each with their description, name and related action)
a!forEach(items: rule!SRI_AnomaliePensione(pensioneId: ri!record['recordType!SRI beneficiario.relationships.pensione.fields.chiavePensioneCorrente']), expression: a!cardLayout( contents: { a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextItem(text: { "Anomalia" }, style: { "STRONG" }) } ), a!richTextDisplayField( labelPosition: "COLLAPSED", value: { "Descrizione anomalia" } */should be fv!item.description/* ), a!sideBySideLayout( items: { a!sideBySideItem( item: a!tagField( labelPosition: "COLLAPSED", tags: { a!tagItem( text: "Aperta", */should be fv!item.status/* backgroundColor: "#cc0000" ) } ) ), a!sideBySideItem( item: a!buttonArrayLayout( buttons: { a!buttonWidget( label: "Sana anomalia", */should be the recordActionField "sana anomalia" with identifie: fv!identifier /* size: "SMALL", width: "MINIMIZE", style: "SOLID" ) }, align: "END", marginBelow: "NONE" ) ) } ) }, height: "AUTO", style: "#efefef", shape: "SEMI_ROUNDED", marginBelow: "STANDARD", borderColor: "#1155cc", showShadow: true ))
Discussion posts and replies are publicly visible
Try this page in the documentation:
https://docs.appian.com/suite/help/26.3/reference-records.html