Connect with peers, share your expertise, and inspire what’s next in Smartsheet — from proven practices to practical how-to insights from fellow users and product experts.
Sign in to join the conversation:
Hi,
I am the primary column id. I want to iterate over rows and get cellvalues of the primary col in python.
for MyRow in my_sheet.rows:
After this is there any direct function to get the cell value using parameters MyRow.id,primary_col_id?
Thanks
The primary column is noted in the column objects of the columns array on the sheet object. It isn't noted in the cell objects for the rows. There isn't a function to get the cell value of the primary column for each row.
To get this data I would first do a get_sheet request to get the full data of the sheet. You can then loop over the objects in the columns array checking for if there is a primary attribute and if it is true. That will help you get the columnId of the primary column.
Next you can do another get_sheet request and provide the column id of the primary column to the column_ids argument for the get_sheet method. This will return back the data o the sheet with only showing data for the primary column. You can then iterate over the rows array and pull out the cell for each row to get the data of the primary column.
Hi Builders, You’ve been asking versions of the same question in this community: when do I use Smart Assist, when an automation, when MCP, and when plain API code? 🤔 So we’re starting a new series, the Smartsheet Builders Series: Building with Smartsheet MCP and Agents, and the first post tackles exactly that. 📖 Smart…
Tell us the one Smartsheet API that would save you the most manual work or workarounds. One word is enough. If you’d like, add what you’re trying to do and how you handle it today. Your answers go straight into deciding what we build next.
Restructuring sheets with tighter dropdowns and clearer naming is key. Why? Because ambiguous column names and free-text status fields that a person reads as fine can produce inconsistent agent behaviour. It’s worth unpacking, because the reason is not that the agent is worse at reading than you are. It is that you bring…