Jhon Doe Posted July 4, 2018 Posted July 4, 2018 Hi everyone, I'm a beginner in FM, and i'm trying to develop a solution that allows me to import data from a csv file. I have two related tables Customer ("parent") and Alerts ("child"), each one has a primary key and the Alerts table has a foreign key to conect with the Customer table. I have to populated the alerts table from a cvs file that could have lots of records so I want to relate this new data to the right customers automatically when i import it, the new data does not have a field with the customer ID (primay key) only has its name. Could you please give me any advice with that?
bcooney Posted July 4, 2018 Posted July 4, 2018 Well, you're going to need something in the alert record that matches reliably to the customer; email address?, first three characters of first and last name? Build a relationship using that and build a UI to see these "potential matches." Have a "confirm match" workflow that sets the CustomerID foreign key.
Jhon Doe Posted July 5, 2018 Author Posted July 5, 2018 Thank you for your help bcooney, let me see if i understand, you're telling me that i have to be sure that the cvs file has to have a field that matches with the "parent" table in order to related both tables?. I'm going to check it and i will tell you how it is going.
bcooney Posted July 6, 2018 Posted July 6, 2018 Yes. If you aren't receiving a foreign key, then it's up to you to try to relate the records. So, how can you do that?
Recommended Posts
This topic is 2585 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now