Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Suggested answer

Create resource only when toggle is set to true

Posted on by 700

Hi All,

I have created a functionality to Bulk upload employees in Business Central.

I have created a page Upload Employee having a button 'Upload', upon action of which all the data will be populated to Employee list page.

Now, it is happening that if we enter Resource No on the page and the 'Create Automatically' toggle for resource is set to 'NO', then too a new resource is created.

I want to restrict this ?

How it can be achieved ?

Thanks!

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 on at
    RE: Create resource only when toggle is set to true

    I have sent the email, you are missing Get Statement for the Setup table.

  • RE: Create resource only when toggle is set to true

    I am using BC version 15.

    Yes, the page is customized one in order to upload bulk amount of data through excel. 

    I have sent you the objects (table and page) on your respective e mail ID.

    And the toggle I am talking about is not customized one, it is the standard one. 

    Thanks.. 

  • RE: Create resource only when toggle is set to true

    I am using BC version 15.

    Yes, the page is customized one in order to upload bulk amount of data through excel. 

    I have sent you the objects (table and page) on your respective e mail ID.

    And the toggle I am talking about is not customized one, it is the standard one. 

    Thanks.. 

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 on at
    RE: Create resource only when toggle is set to true

    Which version of BC are you using? and look like the Create Automatically toggle and the page you are referring is the custom not standard, please try to send the screenshot and the code you are using

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

Quick Links

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans