web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Business Central forum

Adding new role profile in ONLINE Business Central

(1) ShareShare
ReportReport
Posted on by 410

I created a new profile with new role page and its working fine in Sandbox environment. But when I deployed this new created extension in production and tried to create new profile, the system does not allow to create new profile,  only I can copy existing profiles but there is no option to edit  (role center page id) etc.  please give any idea how i can do this or any any alternative way to do this?

Categories:
I have the same question (0)
  • Verified answer
    I Gusti Made Ari Profile Picture
    3,608 on at

    You need to use Profile Object :

    profile TheBoss
    {
        Description = 'The Boss';
        RoleCenter = "Business Manager";
        Customizations = MyCustomization;
    }
    
    pagecustomization MyCustomization customizes "Customer List"
    {
        layout
        {
            modify(Name)
            {
                Visible = false;
            }
        }
    }
    

    Using  the Profile Object syntax in extension development  will automatically add the Profile into tenant Profile table.

    You could also assign page customizations to the profile, that gets reflected when users access the respective base page with that profile, leave Customizations blank if you don't want any customization by default for the profile.


    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-profile-object

  • Asif Shahzad Profile Picture
    410 on at

    Thank you Gusti, it helped a lot and my problem fixed.

  • ManishS Profile Picture
    86 on at

    Great, It helped me.

  • Asif Shahzad Profile Picture
    410 on at

    Dear developers,

    I am facing problem. Actually I have requirement to change Role Center by clicking any Button. It works fine and sets required Profile but it does not refresh existing Role Center. Same role center is open though in My Setting when I see the selected Profile that is the right profile that I want. So please guide me how I can refresh Role Center. My code is as below:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans