web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Flow returning a JSON?
Copilot Studio
Answered

Flow returning a JSON?

(0) ShareShare
ReportReport
Posted on by 71

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

Categories:
I have the same question (0)
  • nk1ng Profile Picture
    71 on at

    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

     

  • Verified answer
    nk1ng Profile Picture
    71 on at

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 270 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 181 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard