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 / Power Automate / Error with utilizing P...
Power Automate
Answered

Error with utilizing Prompts > Structured Output > Customizing JSON output

(0) ShareShare
ReportReport
Posted on by 46
I have a prompt that takes a user's request and an existing JSON table with row and column IDs.
The prompt is designed to have a structured JSON output and after testing, it gets 95% there, The output I get as the structured JSON output that is 95% correct is as follows:
 
{
  "operation": "add",
  "cells": [
    {
      "columnId": 5365531952238468,
      "value": "Await for feedback"
    },
    {
      "columnId": 1987832231710596,
      "value": "2025-10-17"
    },
    {
      "columnId": 7775829480918916,
      "value": "2025-10-25"
    },
    {
      "columnId": 7617331765923716,
      "objectValue": {
        "objectType": "MULTI_PICKLIST",
        "values": [
          {
            "item": "team 1"
          },
          {
            "item": "team 2"
          }
        ]
      }
    },
    {
      "columnId": 2146329946705796,
      "value": "50%"
    },
    {
      "columnId": 105636365553540,
      "value": "Consulting needs to assess output"
    }
  ],
  "location": "toBottom"
}
 
Where it is 5% wrong is the "values": [ { "item": "team 1"},{"item","team 2"}]
What i have in the prompt is that it should be "values": ["team 1", "team 2"], a list of strings essentially.
 
I tried customizing the structured JSON output as follows in the screenshot and get the following error below:
 
I want the cells to output a JSON output essentially and in that format above (in the screenshot). Is this just an invalid JSON format? If it is, what's the way around it to get a specific output?
Essentially my HTTP REQUEST using an API accepts the value in cells in that format and in that format only.
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,978 Moderator on at
     
    Yes it is invalid as its not structured in any way you need it to be structured and defines
     
        "values": [
          { "value": "Team 1" },
          { "value": "Team 2" }
        ]
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • Michael E. Gernaey Profile Picture
    53,978 Moderator on at
    Note I also moved this to the right location.
     
    Cheers
  • Verified answer
    Waqar Qureshi Profile Picture
    46 on at
    Just an update, because my Smartsheets takes the values of "cells" and those values as an array of string, for example, but it's not proper JSON, I had to make my "cells" output to be a "string" and i have an LLM or prompt in copilot studio to write out the proper format the Smartsheet API takes.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 976

#2
Valantis Profile Picture

Valantis 863

#3
Haque Profile Picture

Haque 547

Last 30 days Overall leaderboard