Hello Miya,
You need to retrieve the object first or give it as a parameter to your flow.
Please check out the learning paths for examples how to do this.
Hope this helps,
Good luck!
Either Retrieve the object or Pass the object as parameter before trying to change