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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to convert whole r...
Copilot Studio
Suggested Answer

How to convert whole record to string?

(2) ShareShare
ReportReport
Posted on by 16
 
 
Generative answers require the input to be a string and my data is a record. How do I solve this?
 
Thanks!
Categories:
I have the same question (5)
  • fchopo Profile Picture
    8,003 Moderator on at
    Hi,
    As you're working with a record, I guess it contains many fields. Which field do you want to read? or Do you want to get all fields concatenated into a single value? Can you share the structure of the record?
     
    Thanks in advance!
     
    Ferran
  • PC-16121332-0 Profile Picture
    16 on at
    Hi @fchopo,
     
    I want to get all the fields concatenated as a single (JSON) string. My record has 30-40 fields and I rather not set them as individual variables.
  • bscarlavai33 Profile Picture
    752 Super User 2026 Season 1 on at
    For the input to the Generative answers action, try using a Formula and pass in your record to the JSON function - "JSON(record)"
  • PC-16121332-0 Profile Picture
    16 on at
    That's not possible unfortunately:

    The JSON function cannot serialize objects of type 'Record'.
     
    Text() and ParseJSON() doesn't work either.
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,592 Super User 2025 Season 1 on at
     
    Yes Generative Answers need input in string only. Passing the Json types will not work.
     
    You will need to build the whole string using Power automate flow and then pass on through the Generative Answers node.
     
    But logically why do we have to pass the whole record as input to Generative answers?
     
    If your requirement is to pass the whole record information, then we need to go for different approach using Custom Actions (or) Custom Prompt (or) even Power automate.
     
    Have you tried using Custom Actions using AI builder to summarize the record . This can give you the result in string format. You can use this summarized data into your generative answers if required.
     
    Ref:
     
     
    Thanks,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 612

#2
chiaraalina Profile Picture

chiaraalina 170 Super User 2026 Season 1

#3
deepakmehta13a Profile Picture

deepakmehta13a 116

Last 30 days Overall leaderboard