You only have one profile in use - the 787-8. There are no aircraft in your 787-10 profile, so this will never be used.
The only working flaps assignment you have is in your 787-8 profile:
5=2R,256,F,0,65698,0,0 -{ TO SIM: FLAPS_SET }-
You also have flaps assigned in your 787-10 profile, but this profile is never used.
If flaps are working and that profile is not being used, then they must be assigned elsewhere (e.g. in P3D).
Having profiles for different aircraft is not difficult to set-up, so I don't know why you are having issues. But I can't help with profiles unless I can see the aircraft names, as logged in the FSUIPC6.ini file. This string is what is used to match toa profile. Therefore if you have any issues or questions on profiles, please always attach your FSUIPC6.log file as well as your FSUIPC6.ini file, so that I can see the name(s) of any aircraft that were loaded.
Also looks like you changed the AutoAssignLetters setting but did not run P3D/FSUIPC after you have changed it. Please always tun FSUIPC once any manual changes are made, and only attach files that have been updated/re-written by FSUIPC after any updates (i.e. attach once FSUIPC6 has exited and make no further manual changes).