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

Building an address book search on my bot from o365

Hey all,

 

I have created a search for an user on o365 and everything works however I am not sure how to handle an array?  Currently, the first match and only the first match.. 

 

 

first(outputs('Search_for_users_(V2)')?['body/value'])?['UserPrincipalName']
first(outputs('Search_for_users_(V2)')?['body/value'])?['DisplayName']
...
...

 

 

 

I need to figure if the search term turns up multiple users and then if they do, ask the user what one (search term: joe doe):

joe doe - 1
joe doee - 2
joe doeee - 3

and then they pick and then get all the info for the user or something like that, you know?
Capture.PNG

1 REPLY 1
k1ng
Helper I
Helper I

Edit:

Capture.PNG
I am trying to use the init & append and it successes but I am only getting the output of this:

Status code: 200
Body:
{
  "username": null
}

on Return value(s) to PVA... 

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,244)