Updating Dropdown using Smartsheet API

Judith Dewberry
Judith Dewberry ✭✭✭
edited 06/29/23 in API & Developers

Hello,

I currently have a column with a dropdown list type and I'd like for it to be dynamic. I read some past discussions in the community, but I can't seem to find a clear solution when using the API.

How can I use the API to automatically add to the dropdown when a new record is added? Or is there a way to use the API to pull data from a different source and update the dropdown list automatically?

Thank you,

Answers

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi @Judith Dewberry

    I hope you're well and safe!

    Do you have access to Data Shuttle? It can be used instead of the API.

    I hope that helps!

    Be safe, and have a fantastic week!

    Best,

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up, Awesome, or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

    SMARTSHEET EXPERT CONSULTANT & PARTNER

    Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

    W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

    Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.

  • Hi Andree, I do not have access to data shuttle currently. We have used Smartsheet API to insert and update rows in Smartsheet, so I need guidance on where in the API documentation I could find to auto update dropdowns.

    Thanks,

  • Christian G.
    Christian G. ✭✭✭✭✭✭

    I've made somthing that can read and update dropdown with python

    You should take a look a "Update column" in the documentation


    My code need to be trigger outside of smartsheet since I have not worked with webhook yet.

    Code look something like this

    -----------------------------

    #Column_Spec

          cs=smartsheet.models.Column({

            'title':"columnTitle",

            'type':'PICKLIST',

            'options':listOption,

            'index':<columnIndex>,

            'validation': True

            })   

          r=smartsheetClient.Sheets.update_column(sheetid,columnsID,cs) 

    ------------------------------