Forum Discussion
MarkShnier__You
Qrew Legend
6 years agoI think it's possible but some clarification first. What is the Key field of the parent table? Is it Record ID and a separate field is the value that needs to match the Child?
if that is the case, can we change the Key field of the parent to that Key field as part of the solution, or is that not an option.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
[email protected]
------------------------------
if that is the case, can we change the Key field of the parent to that Key field as part of the solution, or is that not an option.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
[email protected]
------------------------------
DeepaPrashant1
6 years agoQrew Assistant Captain
Mark,
You are right. Currently the key field is just the record ID. The other fields that would uniquely identify the parent would be not one but multiple fields :Run Date, FileTime & Related Bot. A combination of these would identify it as the unique parent. I guess I could create a formula field that stitches these together and make that the key field?
Thanks!
------------------------------
Deepa Deepa
------------------------------
You are right. Currently the key field is just the record ID. The other fields that would uniquely identify the parent would be not one but multiple fields :Run Date, FileTime & Related Bot. A combination of these would identify it as the unique parent. I guess I could create a formula field that stitches these together and make that the key field?
Thanks!
------------------------------
Deepa Deepa
------------------------------
- MarkShnier__You6 years ago
Qrew Legend
Well, a Key field can't be a formula field, but yes you can create that formula field and use it to populate the key field initially and if adding a record manually (Form Rules).
If you can get that key field changed, then what you do is to create a formula checkbox field on the Parent called [Parent Exists?] with a formula of True. Look that up down to Children.
Then create or repurpose your Automation to create a Parent when a child is added or modified and the lookup value of [Parent Exists?] is unchecked
The surprising but convenient behavior of the automation is this. Suppose you import 1,000 children needing 500 parents created. You would think that this would cause a rate limit being hit because you were asking for 1000 automations to run all at once and they can only be triggered at a maximum rate of 20 per second.
The surprise is that you will find that the automation is only run once except it will have 1000 steps. You can watch it run and it doesn't run particularly quickly but eventually it will finish.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
[email protected]
------------------------------- DeepaPrashant16 years agoQrew Assistant CaptainThank you Mark! Will try this out. Have to check what changing the key field does to existing data.
------------------------------
Deepa Deepa
------------------------------- MarkShnier__You6 years ago
Qrew Legend
There is also a solution for if you can't change the key field, but it's more complicated to implement. We would have to get on a zoom call tother for that solution.
You would need to create a new table of Key field records.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
[email protected]
------------------------------
- KristieLee5 years agoQrew TraineeHi All,
Can any one have a example since I tried several times and still cant achieve the results using automation and checkbox field to check the parent record.
Thank you
------------------------------
Kristie Kristie
------------------------------- MarkShnier__You5 years ago
Qrew Legend
Kristi,
you would need to explain your tables and their relationships and their Key fields and expect lain what you have set up so far. Then I can suggest what the problem might be. Please also state what your objective is.
------------------------------
Mark Shnier (YQC)
Quick Base Solution Provider
Your Quick Base Coach
http://QuickBaseCoach.com
[email protected]
------------------------------