Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  transformstr option does not work with [gc organizations limits changerequests list] command.

    Posted 11-16-2025 19:21

    I want to prepare a command in the GC CLI to output the history of Change Requests for multiple organizations to CSV.

    I attempted CSV output using transformstr as shown below, but it hangs and no results are output.

    Command:
    gc organizations limits changerequests list --transformstr="{{- range . -}}\"{{.key}}\",\"{{.requestedValue}}\",\"{{.description}}\",\"{{.supportCaseUrl}}\",\"{{.status}}\",\"{{.currentValue}}\",\"{{.dateCreated}}\",\"{{.dateCompleted}}\",\"{{.id}}\"{{ printf \"\n\" }}{{- end -}}

    Is there something wrong with the syntax?
    Other commands with similar syntax output to CSV successfully.

    Regards,


    #PlatformCLI

    ------------------------------
    Yusuke Higashino
    Engineer
    ------------------------------


  • 2.  RE: transformstr option does not work with [gc organizations limits changerequests list] command.
    Best Answer

    Posted 11-26-2025 02:30
    Hello,

    Sorry for the delay.

    I think the problem you are facing is coming from the CLI having an issue to manage autopagination with the GET /api/v2/organizations/limits/changerequests endpoint (I assume you had autopagination enabled/turned on).
    The paging on GET /api/v2/organizations/limits/changerequests endpoint appears to be a little bit different than other endpoints using the same paging approach (after/before). And the CLI could not cope with it.

    I have just implemented a fix in the CLI for this.
    A new version with this fix is available - version 147.0.0

    Could you please try it and let us know if that solves your issue?

    Regards,


    ------------------------------
    Jerome Saint-Marc
    Senior Development Support Engineer
    ------------------------------



  • 3.  RE: transformstr option does not work with [gc organizations limits changerequests list] command.

    Posted 8 days ago

    Thank you for providing the fixed version!
    I have confirmed that it works as expected in version 149.

    Regards,



    ------------------------------
    Yusuke Higashino
    Engineer
    ------------------------------