Get current Theme ID of User in Fiori Launchpad
i had the requirement to find out, which theme the current logged on user has in the fiori launchpad. I’ve searched a little and would like to share the code with u.
1) First Step: Get UserInfo
var UserInfo = sap.ushell.Container.getService(“UserInfo”)
2) Second Step: Get User
var User = UserInfo.getUser();
3) Third Step: Get Them
Or in Shortform:
The 3 Method calls will give you the current Theme ID of the logged on User:
This helped me for my custom development.
I wish you a nice day & thanks for any rewards / feedbacks.