We got some EUR and USD, converted to IDR in Indonesia, didn't trust the CC either with covid still a thing (though CC was no problem at all, and probably a bit less expensive overall).
Careful with ATMs in Indonesia... many have ridiculously low maximum withdrawals... like 100 USD. As a result will you need to use them repeatedly and pay the fees multiple times. Pick a decent bank and exchange everything at once. If you do stuff like scuba diving ask your tourist guide- many want foreign currency and might offer you a better rate.
So as I get you guys, it's better to exchange CHF for IDR already in Indonesia instead of looking for the solution while being still in Switzerland. I will look what is possible in Denpasar then.