Hi, I'm new in powerapps and C#. I'm trying to write a plug-in. It's about when a contract is made by Entity A, this contract will also be added to Entity B's dataverse. Entity A and entity B has one to one relationship.
I may made wrong in descriping the situation, let me know if you need more informations. Thanks in advanced.
Thanks for replying me. You really helped me a lot. The dealer is a lookup and it is in dealer table. I will set the lookup value step by step. Thanks again!
Please have a look below:
I also suggest you set one lookup field at a time and run and see if it works but you are on the right track 🙂
So now your step that is failing is the create Dealer Contract , if i am right?
Then you do not need to set the Dealer_contract field
you need to set the dealer which is a lookup ? what is it a lookup from which table contact or account or custom?
Dealer's type is lookup, dealer_contract's type is unique identifier.
Here is the details of dealer_contract:
And below is the details of contract:
To pass a lookup you need to pass it in the below way , I am sorry but I can't get much of your screenshots
Say Dealer is a lookup of type entity so you need to pass it as :
/accounts/accountGUID
And I still have a question can automate make this contract automic? Like If I change the status of a contract from inactive to active in contract table, this contract will also be active in dealer_contract.
Here are the contract and dealer_contract table. When a supplier user log in and made an contract with a dealer, this record will be added to contract table and the contract should be also added to dealer_contract table.
I tried to make this in automate but got a bad request error, here is the detail of my flow:
Here is the error:
Did I do wrong from the start? Or I just need to fix this error? Thank you very much for helping me!
Thanks for your reply. I'm really appricated you can guide me on doing this. How can I share screens with you?
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1