Smartsheet Python API Apply Wrap Text and Center Alignment from Column 1 to column 40
Hello everyone.
I have approximately 75 sheets distributed in different folders and subfolders inside a folder. I've built a script that iterates in each sheet successfully, but i'm failing at achieving that in each sheet, from column 1 to column 40, the "wrap text" format is applied and the center alignment is applied.
i've written this code trying to achieve my requirements. I've already tested that my credentials are working fine.
I'm attaching the code in txt since this editor won't allow me to put code blocks.
Any help will be much appreciated.
Answers
-
there's no such attribute as "wrap" to set as true or false. You have to set the "format" attribute in your column object using Smartsheet's format string with textWrap flagged. So, set "format":",,,,,,,,,,,,,,1,"
Here's the format of the format :-)
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives