cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Jumpa
Level: Powered On

How to make a join table

Basic question: I've 3 tables. A, B, C.

A(ID, Desc)

B(ID, Desc)

C(ID_A, ID_B, Quantity)

 

The table C has 2 many to one relationships, one for A and one for B.

The table C use this 2 relationships as composite primary key (CDS seems to generate automatically two fields for this, once the relationships are set, so I've skipped this part).

Now, what's the right way to make this with entities? I've created A and B. They both have an autoincrement ID as primary key.

Then I've created C, BUT I've to define a primary field; I've used Quantity, unfortunetly I can only set this field as "Text", instead I'd like to have "number".

Am I doing this the right way? Sorry I'm new in Powerapps world.

Many thanks in advance.

2 REPLIES 2
Community Support Team
Community Support Team

Re: How to make a join table

Hi @Jumpa ,

 

Did you mean that you want to set the primary field to number field when you create the entity? Please see the explaination:

 

Capture.JPG

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Jumpa
Level: Powered On

Re: How to make a join table

Hi @v-monli-msft , thanks for your support, and sorry for the late reply.

Ok I've understood what a primary field is, but I've a join table and I need a numeric field (creating an entity in CDS, I can only choose TEXT data type).

 

e.g. Table Order_Articles

Fields:

Quantity (this is the only "real" field)

Order (relationship)

Article (relationship)

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 365 members 4,373 guests
Please welcome our newest community members: