Change in status on parent record when all the child records are at a specific stage

Hello Peeps,

I have 3 Tables in my app:

1) WM Employee - It has Related Candidates & Related Interviews
2) Candidate - It has Related Interviews under it
3) Interview

So basically when, in the Interview table, Stage column = "Confirmation Email Sent" then the Stage column in Candidate Table should change to "Closed"

Now under one Candidate there can be multiple interviews. So until all the interview status is not as above the stage at candidate should be in In-Progress or Open.

I have created 2 actions, one is the reference action, in the interview table (Child) & Set Values action on the parent table. But not aware on how the formula works out.

Can anyone please guide on how this can be done.

ss4.pngss3.pngss2.pngss1.png

Solved Solved
0 8 155
1 ACCEPTED SOLUTION

You will find the setting in the form view of the Interview table form. Please set the "Trigger Candidate Stage"  action there.

The referred article has those details. ๐Ÿ™‚

Suvrutt_Gurjar_0-1677146060957.png

 

View solution in original post

8 REPLIES 8

Please try the below

Understanding of requirement: When all the rows of [Stage] columns in the Interview table related to a single candidate are set to "Confirmation Email Sent", then set the Candidate table's [Stage] column for that parent candidate row to "Closed"

In the action Trigger Candidate Stage 

A. In the 'referenced rows" setting, please add an expression something like LIST([Name of Reference column that references the Candidate table])

B. In the "only if this condition is true" , add an expression something like 

ISBLANK(SELECT(Interview[Stage], [Name of Reference column that references the Candidate table]=[_THISROW].[Name of Reference column that references the Candidate table])-LIST("Confirmation Email Sent"))

No changes required in "Update Status" action.

 

 

 

 

Yes it is working. Just want to check, this change in stage, can't it happen automatically?

Because I have to click on a action button to make it happen.

May we know how the user changes the stage column in the Interview table- in a form or through action?

Its in a form.

Thank you. Then please set the action "Trigger Candidate Stage" as an event action on Form save event.

View events - AppSheet Help

 

Where do i find this ?

Sorry i am not aware.

You will find the setting in the form view of the Interview table form. Please set the "Trigger Candidate Stage"  action there.

The referred article has those details. ๐Ÿ™‚

Suvrutt_Gurjar_0-1677146060957.png

 


@Suvrutt_Gurjar wrote:

ISBLANK(SELECT(Interview[Stage], [Name of Reference column that references the Candidate table]=[_ THISROW].[Name of Reference column that references the Candidate table])-LIST("Confirmation Email Sent"))


ISBLANK([Related Interviews][Stage] -LIST("Confirmation Email Sent"))

Is a compact,  more economical way of writing the above expression to achieve the same result.

 

Top Labels in this Space