This is odd. I have a script that adds one row to top of a new/blank sheet for testing purposes. There are two fields and I have the column ID's as well as the sheet ID correct. When I run the script, I get a SUCCESS result. When I go to the sheet, it says it has been changed, and I need to refresh. But, there is no data. The row was added as I can now find its row ID. When I do another insert, the results come back with the sibling ID as well. Here is where it gets weird; when I filter non-blank cells for the one I sent over, I lose row 1 due to the filter, but the browser says "0 of 0 meet filter conditions." Lastly, the modified by and modified date are blank. It is not a formatting issue (color or otherwise). The field is truly blank. Thoughts? In the below script I am using a string for one columnID and one from the array just to make sure that wasn't the issue.
$apiToken = "BLAHBLAHBLAH"
$headers = @{ "Authorization" = "Bearer $apiToken" "Content-Type" = "application/json"}
$summarySheetId = "3293997325832068"$summaryColumnIds = @("5079686234460036", "576086607089540") # Update with actual column IDs for summary data
$cells = @( @{ "columnId" = "5079686234460036" "value" = "Limanni" }, @{ "columnId" = $summaryColumnIds[1] "value" = "SOW - Test" })
$row = @{ "toBottom" = $true "cells" = $cells}
$body = @{ "toBottom" = $true "rows" = @($row)
} | ConvertTo-Json -Depth 3
$updateUrl = "https://api.smartsheet.com/2.0/sheets/$summarySheetId/rows"
$response = Invoke-RestMethod -Uri $updateUrl -Headers $headers -Body $body -Method Post
# Output the response for debugging
$response | ConvertTo-Json -Depth 3