AnsweredAssumed Answered

Follow module IDs from one course copy to another

Question asked by Jared Chapman on Mar 15, 2016
Latest reply on Mar 15, 2016 by Jared Chapman

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!

Outcomes