Help

Re: Trouble setting up new automation

Solved
Jump to Solution
1577 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Debbie_Benkovic
4 - Data Explorer
4 - Data Explorer

Hi everyone. I am trying to set up an automation where when a diagnosis field for a trip in one table is updated it finds the corresponding person (that is connected) in another table and updates a diagnosis field in that table where only different diagnosis is entered. Attached is what I have started. It doesn't run. I tried adding a find records step but couldn't configure the condition (screen grab also attached). 

Suggestions please!

1 Solution

Accepted Solutions

Hello Debbie,

As far as i understand your problem, you should no link table "Passengers" to table "Diagnosis directory".

As Adam said, you should define a rollup field in table passengers as such:

Pascal_Gallais_0-1724162764839.png

I copied your base and modified the Flight requests in order to have 3 different diagnosis on 3 different lines for Bobba Flett, here is the result in passengers tables:

Pascal_Gallais_1-1724162911738.png

If needed, you can also filter this "diagnoses" rollup field to show only diagnoses for which status is either "In progress" or "Booked" in "flight requests" table:

Pascal_Gallais_2-1724163226114.png

 

Regards,

Pascal

See Solution in Thread

10 Replies 10

Hi,
In Find Records you should move slider under condition to the right and choose (i suppose Dynamic)

Alexey_Gusev_0-1723823012847.png

then select field according to your needs

Alexey_Gusev_1-1723823056633.png

 

Hello,

I am not sure that I completly understood your problem, but here is something that I tried:

Pascal_Gallais_0-1723822219698.png

This table "Trig Diagnosis" is linked to the table "Passengers" with the field "Patient".

I added a formula field "Passenger" that copies data for the linked field:

Pascal_Gallais_1-1723822352653.png

My table Passenger is the following:

Pascal_Gallais_2-1723822404217.png

Field "Test" is there to test the automation result.

Automation is set up as follows:

Pascal_Gallais_3-1723822471340.png

It is triggered when field "Diagnosis" is updated on table "Trip diagnosis"

Pascal_Gallais_4-1723822550825.png

I then have a "Find records" action to find related record in table "Passenger":

Pascal_Gallais_5-1723822618859.png

Two condition:

- Condition 1 using the formula field to match Passenger primary key field

- Condition 2 to retrieve the record only if Diagnosis is different

Next action is a repeating group set on the list of records obtained from the "find records" action to update the record in table passenger:

Pascal_Gallais_6-1723822924249.png

Where the record id comes from the current item of the list:

Pascal_Gallais_7-1723823005239.png

Regards,

Pascal

Debbie_Benkovic
4 - Data Explorer
4 - Data Explorer

Pascal,

Thanks for your thoughtful reply. I was not able to figure out how to do all you suggested. I will take you through more detail about my tables and need and what I have attempted in automations and maybe you can help me figure out where I went wrong.

This shows the relevant fields in a large table. A flight request is populated from a form through Zapier. We are choosing a diagnosis from our diagnosis table and it is stored in the trip diagnosis. I created the Passenger field that you requested and then pulled in the Patient Diagnosis as a look up.

Screenshot 2024-08-16 at 4.45.29 PM.png

Screenshot 2024-08-16 at 4.25.44 PM.png

The Patient Diagnosis field is the field we are trying to update with the trip diagnosis if it isn't already there. We need to do this to be able to track what diagnosis a patient flew for as well as all the diagnosis a patient has. 

Screenshot 2024-08-16 at 4.24.18 PM.png

That Patient diagnosis field is linked to the same directory as the trip diagnosis field.

Screenshot 2024-08-16 at 4.36.53 PM.png

Screenshot 2024-08-16 at 4.37.20 PM.png

It's not sending an error but I couldn't figure out how you got name and I didn't know how to do the repeating action.

It seems like you're trying to consolidate all the diagnoses from each of the trips a patient has been on, is that right?  If so, would this work?

Screenshot 2024-08-17 at 3.50.07 PM.png
Screenshot 2024-08-17 at 3.50.16 PM.png
Link to base

---
Or is it that you're trying to track the diagnosis a patient went on a specific trip for, and then want to also track what they ended up diagnosed with during that trip?

Hello Debbie,

Adam's answer may be the solution that you are looking for, dimiss this reply if it is the case.

Here is a screen capture for adding the "repeat" action:

Pascal_Gallais_0-1723972989257.png

Once added, you click on "Select input list":

Pascal_Gallais_1-1723973054965.png

And you select your "Find records" action and "use as a list" option:

Pascal_Gallais_2-1723973133709.png

Concerning the "name" option, it depends on field type. I guess that we did not set the same type for Diagnosis field.

Regards,

Pascal

There is a complex table with many fields. One tab is set up for the scheduled trips another for the passenger data. The names are linked between. There is another tab with the diagnosis. We want to track 2 things: 1 what diagnosis did the patient seek treatment for on a specific flight but then we want to keep track of all the diagnosis of a patient. It is a little tricky because the patient can have many diagnosis but they don't travel to treatment for all of them at the same time. I hope that clarifies the issue. 

Debbie_Benkovic
4 - Data Explorer
4 - Data Explorer

 

 

I am still not able to figure this out. Trying to do the suggestions. I did create a test data base so you can see more specifically what I have. 

Link to test base 

Hmm, it sounds like a lookup field would work fine?  The diagnosis the patient is seeking treatment for on a specific flight is kept in the "Flight Requests (Trips)" table, while the "Passengers" table would contain all the diagnoses they had for each trip they had? 

Flight Requests (Trips):

Screenshot 2024-08-20 at 1.32.05 PM.png

Passengers:

Screenshot 2024-08-20 at 1.32.46 PM.png

Thats right. I'm not sure how a look-up field would solve it. We want to add the trip diagnosis to whatever is in the patient diagnosis field—if it is different. That field is connected to the diagnosis directory which I fear is the issue.