Call an integration services in a!gridColumn

Certified Associate Developer

Hello, 
i have a record type mapped on an expression rule that calls an integration service.

I'm able to create a grid which displays every record type's element; this is easy :)
I would need to insert a column at the end of each row that calls an integration service passing a property of the record type.

I created a related action that calls a process model that contains the integration service call; i can't call this related action from that column.

In the last column, the one that calls the service, it has to be present a "play" icon.

Thanks in advance.
Marco

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    You can use the Record action component - Record Action Component within the grid column to call a related action in context of that particular record.

    Sample code snippet -

      a!gridColumn(
        label: "",
        sortField: <recordColumnSortField>,
        value: a!recordActionField(
            actions: {
              a!recordActionItem(
                action: <recordRelatedAction>, /*Use record! e.g. recordType!Case.actions.editCase*/
                identifier: <recordIdentifier>
              )
            },
            style: "TOOLBAR",
            display: "ICON"
        ),
        align: "CENTER"
      ) 

Reply
  • 0
    Certified Lead Developer

    You can use the Record action component - Record Action Component within the grid column to call a related action in context of that particular record.

    Sample code snippet -

      a!gridColumn(
        label: "",
        sortField: <recordColumnSortField>,
        value: a!recordActionField(
            actions: {
              a!recordActionItem(
                action: <recordRelatedAction>, /*Use record! e.g. recordType!Case.actions.editCase*/
                identifier: <recordIdentifier>
              )
            },
            style: "TOOLBAR",
            display: "ICON"
        ),
        align: "CENTER"
      ) 

Children