
Announcements
Hi All,
I am using an ERP that has a SQL database. I have created 2 flows (one for orders, and one for the bill of materials for those orders) into CDS from SQL views. Each dataflow has the same JOBID field. I setup a relationship (one to many) between the 2 entities, but it doesn't seem to connect the entities in the app. I want to eliminate a lookup formulas in my app.
My end goal is to pull information into CDS from SQL, add reference data that wasn't supported in the ERP, and add app user data to the records. If there is a better way, please let me know. Thanks, Chene
Hi @remarcc
You need to create an alternate key on your entity that is on the one side of the one to many relationship. You then can use that key in the data mapping of the entity that is on the many side of the relationship.
For example, I have a Building entity and a Building Visit entity in a one to many relationship. The Building entity has a alternate key field defined called Building Number. I then use this to map the Building Visits' relationship to the Building in the data flow.
-----
If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".