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

[QUERY] What should Update Canvas built-in's section_id be? Also: a 'lookup' or 'get' canvas API would help. #289

Open
mcsescott opened this issue Mar 14, 2024 · 3 comments
Labels
backend Slack backend issue feature request New feature or request question Further information is requested

Comments

@mcsescott
Copy link

The latest version of the SDK has functions available to update a canvas.

Specifically regarding updating a canvas with the canvas_update_content function, the documentation doesn't state what to use for a section ID.

  • Are the sections just in numerical order?
  • Is there a name for the sections?
  • Are they in array order (starting with 0) ?

Do we just use the text of the section header as the section_id ?

Better yet, being able to query a canvas with canvas_info function / API would be awsome!

Thanks in advance...

@filmaj filmaj added the question Further information is requested label Mar 15, 2024
@filmaj
Copy link
Contributor

filmaj commented Mar 15, 2024

@mcsescott I am following up with the Canvas team to get information about your question, and I agree a 'lookup canvas' API method would be helpful and allow folks to at least discover the format/shape of canvas objects! I will file that as a feature request / feedback.

@filmaj filmaj changed the title [QUERY] Canvas - Section ID [QUERY] What should Update Canvas built-in's section_id be? Also: a 'lookup' or 'get' canvas API would help. Mar 15, 2024
@filmaj filmaj added feature request New feature or request backend Slack backend issue labels Mar 15, 2024
@rafaelamsili
Copy link
Contributor

rafaelamsili commented Mar 15, 2024

Hi @mcsescott the section_id is the id of the section in the canvas, currently you can get it going to the canvas itself and right-click on the header section on Copy link to section which will copy the link to the section, then the id of the section will be the part that goes after focus_section_id which should look something like temp:C:XIF49dce0e217054fcba25952634

Screenshot 2024-03-15 at 8 02 01 AM

@mcsescott
Copy link
Author

Thanks @rafaelamsili

I tried that today, and it also solves the bug with Canvas workflows (from Workflow builder). Thanks for the tip!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Slack backend issue feature request New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants