The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
So, I have a problem. I have been experimenting with ways to skin Canvas with different interfaces and I've had a lot of success. However, in each case, I use the module api to pull in module data, including IDs, and then tie meta data to a module ID. This works great! However, when I copy a course, the module IDs change and I have to start from scratch to reconfigure dozens and dozens of settings. My question is, how can I get a module's new ID after a course? Some how I need to know the old ID and the new ID so I can update my database.
I hope that is clear, any suggestions? I looked at the content migrations API but I didn't see anything. Hopefully one of your creative minds can help me out!
Hopefully someone can come up with a better way than this, but here are some steps I thought of
select the course to copy from list
export the course
we pull the export file in, then add an id tag to the module title string
import the course in canvas
we use the ID tag to locate the new module IDs
we copy the meta data from the old IDs to the new ones
we clean out all the id tags from the new course
That looks super ugly, but I hope it can help you see something I can't and come up with a cleaner method.
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in