Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Create resource only when toggle is set to true

(0) ShareShare
ReportReport
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,745 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,745 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

News and Announcements

Announcing Category Subscriptions!

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,359 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans