I was previously advised in another topic to add an autopagenate option if the gotmplate conversion fails, but is setting autopagenate mandatory to use transform?
I would like to csv out the results of 'gc telephony providers edges phones get [id]' to check the phone resist status etc.
Looking at the help, the 'gc telephony providers edges phones get [id]' command has the --transform/--transformstr option, but the '-a' option does not seem to work.
Although the commands are different for get and list, they use the same TRANSFORM, so I do not see a problem with syntax.
I can't think of any other reasons for failure, Does anybody have any idea about this problem?
[working as expected]
gc telephony providers edges phones list -a --transformstr="{{- range . -}}{{.name}}{{.id}}{{.state}}{{- end -}}"
[not working]
gc telephony providers edges phones get [id] --transformstr="{{- range . -}}{{.name}}{{.id}}{{.state}}{{- end -}}"
[error message]
Error applying parsed template to data object: template: tmpl:1:17: executing "tmpl" at <.name>: can't evaluate field name in type interface {}
*To isolate the problem cause, the transformstr is simpler than it actually is.