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
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 142 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives