AP Credit for Transfer if Transfer School doesn’t Accept

Scenario: I take an AP class and score a 5. I go to a college that accepts that AP credit for the class, let’s just say Microeconomics as an example. Then I transfer to a different school next year but they don’t accept AP credit for Microeconomics. It’s a stretch but would they accept it as a credit if it was for transfer requirements? Or do I have to retake that class in college to get that before I transfer?

Btw, my current situation is I’m considering possibly maybe NYU as a transfer next year, just wanna know if I have to retake classes like calculus since that’s required to transfer but I would have been given credit by my current school already.