cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nk1ng
Helper II
Helper II

Flow returning a JSON?

Afternoon!

 

I am trying to get a JSON back from search_for_user_(v2) to pass to the composer and I am sure out to do that.  I can append to a string with a concat function however I am not sure how to bring it back from a string to json in composer for the foreach?

 

Let me know!

-n

1 ACCEPTED SOLUTION

Accepted Solutions
nk1ng
Helper II
Helper II

Welp, I finally got it.

Flow (and set for the 'return' to be global in PVA):

nk1ng_3-1627562804816.png

 


Composer (Create Tab; I used json func here for the string return from PVA to go back to an array in composer):

nk1ng_4-1627563094893.png

 

Composer (Bot responses tab):

nk1ng_1-1627562536034.png

and

nk1ng_2-1627562595348.png

 

The only caveat now is the image for the user, which will work in the test bot however when you publish it to teams won't show the image.  Still working on that...

View solution in original post

2 REPLIES 2
nk1ng
Helper II
Helper II

Update:  I think I got the JSON back to the PVA:

nk1ng_0-1627411100659.png

 

However the composer has issues?  Won't run the foreach stating it's "not a collection or structure object"?

nk1ng_1-1627411227664.png

 

If you look at the logs on the composer:

nk1ng_2-1627411442125.png

 

Let me know!

-n

 

nk1ng
Helper II
Helper II

Welp, I finally got it.

Flow (and set for the 'return' to be global in PVA):

nk1ng_3-1627562804816.png

 


Composer (Create Tab; I used json func here for the string return from PVA to go back to an array in composer):

nk1ng_4-1627563094893.png

 

Composer (Bot responses tab):

nk1ng_1-1627562536034.png

and

nk1ng_2-1627562595348.png

 

The only caveat now is the image for the user, which will work in the test bot however when you publish it to teams won't show the image.  Still working on that...

View solution in original post

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 (3,407)