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.

How to retrieve rows from entity data type

Certified Associate Developer

I have a data with following format-

[entity: somevalue , data:[id:1,name:a],[id=2,name:b]

Now i need to pass data part in loop. As it has 2 occurrences for data so loop should run two times. And for each occurrence it should pas only relevant data.

1st occurrence-  [entity: somevalue , data:[id:1,name:a]

2nd occurrence-  [entity: somevalue , data:[id=2,name:b]

As data is type of array so not able to do indexing here.

Any suggestion.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to piyusha6151

    Something like below?

    In entityDataPV rule input, i used the below code.

    a!entityData(
      entity: cons!UAS_DSE,
      data: {
        'type!{urn:com:appian:types:UAC}UAC_UAS_Onboard_Data'(
          uniqueassetid: 1,
        ),
        'type!{urn:com:appian:types:UAC}UAC_UAS_Onboard_Data'(
          uniqueassetid: 2,
        ),
        'type!{urn:com:appian:types:UAC}UAC_UAS_Onboard_Data'(
          uniqueassetid: 3,
        ),
        'type!{urn:com:appian:types:UAC}UAC_UAS_Onboard_Data'(
          uniqueassetid: 4,
        )
      }
    )

Children
No Data