Hello,
I want to create my first model-driven app and run into a problem while thinking about how to transfer data from one table to another. The data are all stored in Dataverse.
The following situation or requirement:
I have a table in which there are entries that, if a certain status is reached, should be displayed as a new selection option when creating a new entry in another table.
In a canvas app I could use filters etc. to get my result.
But since this new app is supposed to be a model-driven app, I can't get any further with my knowledge.
Thx Michael
Solved! Go to Solution.
Hi @MRauscher ,
If I read your question correctly, you could have a Lookup column on table B that utilizes table A as the source and then create a View on Table A that includes the statuses you would like to allow to be selected. In the form for Table B, you can choose the View that is used to filter the lookup field, and you would choose the view you created. Note, you need to click on the magnifying glass on the Lookup field to filter based on the defined view.
Hopefully this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew
Hello @MRauscher,
You are absolutely correct, in Canvas we can use Filter Option. But when we are going with Model Driven App, you need to make an Retrieve call Using ODATA to perform this Operation.
Eg
On Load of Second Table, Pass the First Table ID and Get the values and Compare the Values is reached specific status or not. If yes then Set the value accordingly in Second Table..
I Have attached CRM Rest Builder, you can use the same for Generating ODATA query.
Please find my video on how to write JS on ONLOAD operation to perform the ODATA Call. LET me know if you need any help
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
Hi @MRauscher ,
If I read your question correctly, you could have a Lookup column on table B that utilizes table A as the source and then create a View on Table A that includes the statuses you would like to allow to be selected. In the form for Table B, you can choose the View that is used to filter the lookup field, and you would choose the view you created. Note, you need to click on the magnifying glass on the Lookup field to filter based on the defined view.
Hopefully this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew
Hi @MRauscher ,
If I read your question correctly, you could have a Lookup column on table B that utilizes table A as the source and then create a View on Table A that includes the statuses you would like to allow to be selected. In the form for Table B, you can choose the View that is used to filter the lookup field, and you would choose the view you created. Note, you need to click on the magnifying glass on the Lookup field to filter based on the defined view.
Hopefully this helps. Please accept if answers your question or Like if helps in any way.
Thanks,
Drew
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
16 | |
11 | |
8 | |
5 | |
4 |
User | Count |
---|---|
24 | |
14 | |
13 | |
11 | |
10 |