For the case number I actually made a PR recently, but it should be in 7.10.4… :blink:
You can read about it here:
And check my changes here:
https://github.com/salesagility/SuiteCRM/pull/5132/files
See if you can find out a solution with the information from those links.