Jump to content
  • 0

Automatically Append IDs in Child Table from Parent Table


ChristianM

Question

Hi All,

I have a table in Caspio "IDS_Export_Web_Inventory" that is automatically imported and replaced nightly. This table has a unique ID field [stock_number]. This is my parent table.

I have another table "Inventory_Inspections" with a unique ID field [Stock]. This is my child table.

How can I automatically append new records from "IDS_Export_Web_Inventory".[stock_number] that are not already in "Inventory_Inspections".[Stock] to "Inventory_Inspections".[Stock]?

I've created a task which seems to accomplish this goal but I'd like to confirm if this workflow will work and/or is the best recommended practice.

image.thumb.png.c038d11e887a28822e245b2eb85698f9.png

Thanks,
Christian

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

What you will need here is a not in/not exist function. Heres an example of a Not exist function.

6733248 

In this case, let's say that the 'Inventory_Inspections' is the 'cascade_b' table and the 'IDS_Export_Web_Inventory' is the 'cascade_a' table.

cascade_b.parent is the Inventory_Inspections.stock

and the cascade_a.ID is the IDS_Export_Web_Inventory".[stock_number] 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...