updateShapeProperties: Invalid field: autofit_type

85 views
Skip to first unread message

Greg Cox

unread,
May 24, 2021, 10:13:51 AM5/24/21
to Google Apps Script Community
Hi.

Getting error "GoogleJsonResponseException: API call to slides.presentations.batchUpdate failed with error: Invalid requests[3].updateShapeProperties: Invalid field: autofit_type"

but I think my code is right:

'updateShapeProperties': {
  'objectId': pageElementId,
    'fields': 'autofitType',
    'shapeProperties': {
    'autofit': {
      'autofitType':'SHAPE_AUTOFIT'
    }
  }
}

Any help much appreciated
Cheers
Greg


Carl Andreas Julsvoll

unread,
May 28, 2021, 3:59:12 AM5/28/21
to Google Apps Script Community
Based on the dev docs, it doesn't look like this property is possible to set. Can someone confirm this? 
Reply all
Reply to author
Forward
0 new messages