What to do if I have two separate issues (similar but definately different) in the same context.
For the first issue, you follow the expected steps to identify exactly what part of that context is relevant to the issue, and then:
Only if you are trying to fix a problem in existing code, show a minimal reproducible example of code which demonstrates the problem (which does not necessarily look anything like your actual code; it is your responsibility to take the answer you get to the question that you ask, and adapt it to your actual code)
If you are trying to find out how to do something, show minimal setup code for where the "something" has to happen - the purpose here is to clearly specify the input for the task - and then also clearly show desired output. We should be able to look at potential answers to the question, try them, and be confident about whether they actually work, following your precise specification, without having to ask for confirmation.
Then, for the second issue, do that all over again. If they are actually separate issues, then you will necessarily post different code each time.
It seems like you've correctly identified that you have a multi-step process that you want to implement, and there are several parts that you don't know how to do, and that you should ask about them separately. That's correct so far. But you should also ask about them one at a time, and try out your code for each step and make sure it works before moving on to the next challenge. And for each of these challenges, you should expect different people to answer who have no reason to care about anything else that's going on in your project.
Keep in mind that questions on Stack Overflow are not requests to make your code work. They are exactly what they're labelled as: questions, the answers to which you use in order to do more programming. We don't offer a debugging service (not even a rubber duck) or a help desk or a back-and-forth discussion to hammer out a design. We offer answers.