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...

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.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

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 (5,745)