Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating linked column value #240

Open
ytannus opened this issue Apr 8, 2023 · 0 comments
Open

Updating linked column value #240

ytannus opened this issue Apr 8, 2023 · 0 comments

Comments

@ytannus
Copy link

ytannus commented Apr 8, 2023

I got stuck when I try to update a item column value (provider_name) that it s linked to another board (providers “table").

This is my example code:

main_board = moncli.client.get_board_by_id(1234567890)
providers_board = moncli.client.get_board_by_id(9876543210)
provider = providers_board.get_items_by_multiple_column_values(column='name', column_values=['John Doe'])[0]
item = main_board.get_items_by_multiple_column_values(column='name', column_values=['2131361'])[0]
item.change_column_value(id='provider_name',column_value=[provider])

When I run it I got this error:

`UnboundLocalError: local variable 'column_id' referenced before assignment`

I red your wiki and searches in internet without success.
Do you have an example code to update a linked column value of an linked item?

I will really appreciate your help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant