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.

Expression evaluation error at function a!forEach [line 15]: Error in a!forEach() expression during iteration 77: Expression evaluation error at function 'index' parameter 1 [line 21]: Invalid index: Cannot index property 'tiePointStatus]'

Certified Associate Developer

a!localVariables(
  local!oldCdt: rule!ITS_GetPQRRequestByPqrRequestId(pqrRequestId: 71),
  local!newCdt: rule!ITS_GetPQRRequestByPqrRequestId(pqrRequestId: 80),
  local!fields: split(
    stripwith(
      tostring(
        'type!{urn:com:appian:types:ITS}ITS_PQR_REQUEST_DETAILS'()
      ),
      "[= "
    ),
    ","
  ),
  tostring(
    a!flatten(
      a!forEach(
        items: local!fields,
        expression: {
          if(
            exact(
              if(
                isnull(local!oldCdt[fv!item]),
                "",
                local!oldCdt[fv!item]
              ),
              if(
                isnull(local!newCdt[fv!item]),
                "",
                local!newCdt[fv!item]
              )
            ),
            {},
            fv!item & ": " & local!newCdt[fv!item]
          )
        }
      )
    )
  )
),

  Discussion posts and replies are publicly visible

Parents Reply
  • a!localVariables(
      local!oldCdt: rule!ITS_GetPQRRequestByPqrRequestId(pqrRequestId: 71),
      local!newCdt: rule!ITS_GetPQRRequestByPqrRequestId(pqrRequestId: 80),
      local!fields: split(
        stripwith(
          tostring(
            'type!{urn:com:appian:types:ITS}ITS_PQR_REQUEST_DETAILS'()
          ),
          "[= "
        ),
        ","
      ),
      tostring(
        a!flatten(
          a!forEach(
            items: local!fields,
            expression: {
              if(
                exact(
                  if(
                    isnull(property(local!oldCdt,fv!item,{})),
                    "",
                    property(local!oldCdt,fv!item,{})
                  ),
                  if(
                    isnull(property(local!newCdt,fv!item,{})),
                    "",
                    property(local!newCdt,fv!item,{})
                  )
                ),
                {},
                fv!item & ": " & property(local!newCdt,fv!item,{})
              )
            }
          )
        )
      )
    ),

Children