Python -- Add Image to Cell: file name/display name adopt file path
Tim Buck II
✭✭
Hi,
smartsheet_client.Cells.add_image_to_cell(sheet_id, row_id, col_id, r'/Users/me/pic_name', 'png')
result image added to cell: _Users_me_picname.png
I want it to just be picname.png
How do I ensure the path is stripped in the resulting image name/image display name?
Thanks
Answers
-
Hi @Tim Buck II
You'll want to use the query parameter altText to identify a different name for the image. (See: Add Image to Cell in the API Documentation).
Let me know if this works for you!
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
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