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.760 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.760 students) : English | Português

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

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.760 students) : English | Português

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Canadian Cloud 2022 768x460.png

Register for a free PVA chatbot creation workshop.

Learn how to respond rapidly to your customers and employees at scale, using intelligent conversational chatbots.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (2,449)