While I’m still learning Mikrotik, I’m pretty good at programming so I decided to update a Cloudflare DDNS script that wasn’t working for me bacause of authentication failure.
Working script can be found here: https://github.com/mike6715b/Mikrotik_CF_DDNS
Appreciate any comments and possible improvements to the code. 
Health to your hand, but I’m waiting for a little bit of installation and settings. Because I couldn’t succeed. My CloudFlare account is available but I’m a bit of a pain. It is very good to explain step-by-step with why. The RECORD ID is received from Cloudflare as well. I’m sorry for my bad english
This is harder than it should be!
I got this working on Router OS 7 to update record at Cloudflare:
https://gist.github.com/warwickchapman/6860c2387fa71c2391e51cff943eb351