Hi,
Been struggling with this scenario for a couple of days now:
Is it possible to achieve this behavior in a model-driven app? I'm a noob to Power Apps and am not seeing where one could lookup an entity and use its field values when creating another separate entity. At least not through the Business Rules editor. Perhaps this is a situation where utilizing Xrm.WebApi.retrieveRecord would be necessary in a client script file?
Thanks in advance for any help.
Thanks,
Dan
Solved! Go to Solution.
Hi @djallen ,
Do you want to set a field's default value from another entity data in model-driven form?
I'm afraid it's not supported yet in model driven app.
However, you could do this in canvas app.
As an alternative way, I suggest you embedded a canvas app in your model driven app.
Here's a doc about it for your reference:
In canvas app, you firstly, you need to connect with the current entity and the related entity (Factor and Quote)
Then insert a form, set its data source to Quote.
By default, a combo box will be used to choose value for the lookup field.
So you could set Quote field textinput's Default: (clean the lookup field datacard's Default)
lookup combo box.Selected.Value
Or
lookup combo box.Selected.Min Value
Then the Quote field will change with the selection of the lookup field.
Best regards,
Hi @djallen ,
Do you want to set a field's default value from another entity data in model-driven form?
I'm afraid it's not supported yet in model driven app.
However, you could do this in canvas app.
As an alternative way, I suggest you embedded a canvas app in your model driven app.
Here's a doc about it for your reference:
In canvas app, you firstly, you need to connect with the current entity and the related entity (Factor and Quote)
Then insert a form, set its data source to Quote.
By default, a combo box will be used to choose value for the lookup field.
So you could set Quote field textinput's Default: (clean the lookup field datacard's Default)
lookup combo box.Selected.Value
Or
lookup combo box.Selected.Min Value
Then the Quote field will change with the selection of the lookup field.
Best regards,
User | Count |
---|---|
194 | |
126 | |
90 | |
48 | |
44 |
User | Count |
---|---|
280 | |
160 | |
138 | |
81 | |
76 |