cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
logixcrm
Helper I
Helper I

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

2 ACCEPTED SOLUTIONS

Accepted Solutions
renatoromao
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 (+2.650 students) : English | Português

View solution in original post

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

View solution in original post

3 REPLIES 3
renatoromao
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 (+2.650 students) : English | Português

View solution in original post

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

View solution in original post

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 (+2.650 students) : English | Português

Helpful resources

Announcements
Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Center-of-Excellence-Starter-Kit-cropped 768x460.png

The Total Economic Impact™ of Power Virtual Agents

Read this 2021 commissioned study, conducted by Forrester Consulting.

Users online (2,069)