cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Recover a Contacts username using PVA

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 stuckWhere I am stuckEnd of the PVA where a Flow is calledEnd of the PVA where a Flow is calledStart of the PVAStart 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.

PVA 4.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

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.

 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+1.000 students | 25% OFF) : https://www.udemy.com/pva-beginners

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

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.

 


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+1.000 students | 25% OFF) : https://www.udemy.com/pva-beginners

View solution in original post

Highlighted

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.

 

PVA 5.PNG

PVA 6.PNG

Highlighted

Congratulations, good job! 🙂


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+1.000 students | 25% OFF) : https://www.udemy.com/pva-beginners

Helpful resources

Announcements
PVA Commnity Blog

NEW Power Virtual Agents Community Blog

View articles posted by fellow community members on the Power Virtual Agents Community Blog!

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Users online (9,123)