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
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives