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 / 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 (4)
  • 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 2025 Season 2 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,590 Super User 2025 Season 2 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

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 261 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

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

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard