Workflow Update Record Action - how to update value on another reference record

how do we update a record value in reference table once the current table record updated.

Case Details - Table

  • Case ID Column
  • Case Status Column

Work Order Details - Table

  • Case ID Column (ref to Case Details -> Case ID)
  • Work Order Status Column.

How do we change the status of case status column to closed when work order status set to closed.

Been figuring out the action, but not sure which one to use
3X_a_1_a186c1419b54c3fc0be3976593ec1339eb6895ec.png

Solved Solved
0 11 698
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Action 1

  • For a record of this table: Case Details
  • Do this: Data: set the values of some columns in this row
  • Set these columns:
    • Case Status: "Closed"
  • Only if this condition is true: ("Closed" <> [Case Status])

Action 2

  • For a record of this table: Work Order Details
  • Do this: Data: execute an action on a set of rows
  • Referenced Table: Case Details
  • Referenced Rows: LIST([Case ID])
  • Referenced Action: (action 1)
  • Only if this condition is true:
    AND(
      ("Closed" = [Work Order Status]),
      ("Closed" <> [Case ID].[Case Status])
    )
    

Action 2 should be used by your workflow. Action 2 will then use action 1.

View solution in original post

11 REPLIES 11

Hi @EugeneB
I dont understand what you are trying to do.

@Lynn

was trying to create a workflow action to change the status of another reference table.

Trying to do as this guide,

but, strange that i have set it, the record of the case details table, Case Status column not update.

Steve
Platinum 4
Platinum 4

Action 1

  • For a record of this table: Case Details
  • Do this: Data: set the values of some columns in this row
  • Set these columns:
    • Case Status: "Closed"
  • Only if this condition is true: ("Closed" <> [Case Status])

Action 2

  • For a record of this table: Work Order Details
  • Do this: Data: execute an action on a set of rows
  • Referenced Table: Case Details
  • Referenced Rows: LIST([Case ID])
  • Referenced Action: (action 1)
  • Only if this condition is true:
    AND(
      ("Closed" = [Work Order Status]),
      ("Closed" <> [Case ID].[Case Status])
    )
    

Action 2 should be used by your workflow. Action 2 will then use action 1.

@Steve thanks so much, appreciate your details explanation. i am marking this as the solution, hopefully someone will find this useful in the future.

i missing the condition check for that, previously i placed it as default with true? but wasnโ€™t that if it is true, it will execute it in regards anything?

Action 1 - * Only if this condition is true: ("Closed" <> [Case Status])
Action 2 - AND(
(โ€œClosedโ€ = [Work Order Status]),
(โ€œClosedโ€ <> [Case ID].[Case Status])
)

I canโ€™t make sense of this.

@Steve can we pass a value from the Work Order Details column to the Case Details column?
example we have [Arrival Time] from the Work Order Details Table, to pass the value to the [Resolution Time] Case Details table?

Sure!

I have use LOOKUP()
LOOKUP([_THISROW].[SD Case ID], โ€œWork Ordersโ€, โ€œCase IDโ€,โ€œFinished Date & Timeโ€)

in the Action 2,

it is a correct way of doing it?

Looks good to me! Does it not work?

@Steve it is picking the first entry instead of the latest entry, so the result wasnโ€™t the expected one. however i followed your FAQ guide here FAQ: FILTER(), LOOKUP(), MAXROW(), MINROW(), REF_ROWS(), and SELECT() - #3 by Steve

To pick up for the latest entry, thanks. it works like charm. thanks @Steve

LOOKUP(
  MAX(My Table[_ROWNUMBER]),
  "My Table",
  "_ROWNUMBER",
  "Wanted Column"
)
Top Labels in this Space