To move data from ERPNext to Affinity automatically, use a ready-made scenario — no manual exports.
You can launch this ERPNext + Affinity integration in Scriptera: describe the task in plain words — the scenario is built, launched and monitored for you.