I am new to PVA, so for my first test I am trying to create a PVA that will allow a user from a Power App Portal to recover their username.
The issue I am facing is howto fetch the contact record, I am have twi methods, Get Record and List Record. Each method I found not to be suitable, the Get Record requires a GUID and for the List record, the output cannot be placed in the PVA response because the output is a result from a forEach Loop.
Here are some pics of what I am seeing. Maybe, hopefully someone could shed some light on how I could resolve this.
Where I am stuck
End of the PVA where a Flow is called
Start of the PVA
When using the List Record Option, I opted to use Fecth EML to find the record, I am able to find the record but PVA does not allow me to post back the result of the List Record.
Solved! Go to Solution.
Hi @logixcrm ,
Welcome to the PVA community! 🙂
Regarding your question, you can create action at the beginning of your workflow (Power Automate) with the type called "Initialize variable".
The name of your variable you can write "Contact" and the type will be String.
After you use the action called "List records" with a CDS connector, you can create an action called "Set variable".
Select your variable Contact and inside the Value, insert which property inside Contact entity do you want to get (like e-mail, name, or something like that) using the Dynamic content window that opens when you click inside the field on Power Automate.
Now, inside your Response action to PVA, you can send your Variable because it's a string/text type.
Thank you very much. It worked.
For anyone who is trying to reach CRM fields, in the same manner, I have attached the final solution.
Hi @logixcrm ,
Welcome to the PVA community! 🙂
Regarding your question, you can create action at the beginning of your workflow (Power Automate) with the type called "Initialize variable".
The name of your variable you can write "Contact" and the type will be String.
After you use the action called "List records" with a CDS connector, you can create an action called "Set variable".
Select your variable Contact and inside the Value, insert which property inside Contact entity do you want to get (like e-mail, name, or something like that) using the Dynamic content window that opens when you click inside the field on Power Automate.
Now, inside your Response action to PVA, you can send your Variable because it's a string/text type.
Thank you very much. It worked.
For anyone who is trying to reach CRM fields, in the same manner, I have attached the final solution.