Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Unattended company creation via API - Experience Tier

(0) ShareShare
ReportReport
Posted on by
Hi,
 
I'm developing an un unattended company creation script using python and the automation APIs.
 
Currently, when creating a new company using the automation APIs, this creates a new blank company with no configuration at all.
 
I have already worked out how to upload the Standard RapidStart config package, and apply it.
 
The problem is that this new company has no Experience specified in the Company Information page, and in fact, has no entry in table 9176 - Experience Tier Setup.
 
I can craft a RapidStart package that will set the Essential boolean for that company name. 
 
<?xml version=/1.0/ encoding=/UTF-16/ standalone=/yes/?>
<DataList MinCountForAsyncImport=/5/ ProductVersion=// PackageName=/Experience Tier/ Code=/EXP.TIER/>
  <ExperienceTierSetupList>
    <TableID>9176</TableID>
    <ExperienceTierSetup>
      <CompanyName PrimaryKey=/1/ ValidateField=/1/ ProcessingOrder=/1/>Contoso 23</CompanyName>
      <Basic ValidateField=/1/ ProcessingOrder=/2/>0</Basic>
      <Essential ValidateField=/1/ ProcessingOrder=/3/>1</Essential>
      <Premium ValidateField=/1/ ProcessingOrder=/4/>0</Premium>
      <Preview ValidateField=/1/ ProcessingOrder=/5/>0</Preview>
      <Advanced ValidateField=/1/ ProcessingOrder=/6/>0</Advanced>
      <Custom ValidateField=/1/ ProcessingOrder=/7/>0</Custom>
    </ExperienceTierSetup>
  </ExperienceTierSetupList>
</DataList>
 
[XML is mangled by the community posting software, the quotation marks are correct in my package]
 
If I upload the RapidStart package to a sandbox environment this appears to do the right thing.
 
Is this the correct way to set the Company Experience using the API? Do I need to do something else?
 
Thanks,
Giles Radford
 
  • Suggested answer
    YUN ZHU Profile Picture
    79,107 Super User 2025 Season 1 on at
    Unattended company creation via API - Experience Tier
    It looks like this field cannot be modified from code or API.
    First of all, this field is a variable, so it cannot be imported through the Configuration Package.
    In addition, the Experience Tiers table is also a temporary table, and you cannot directly write data.
     
     
    The most critical thing is that the scope of the code for switching Experience Tiers is OnPrem, which we cannot use in the cloud version.
     
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Mohana Yadav Profile Picture
    60,199 Super User 2025 Season 1 on at
    Unattended company creation via API - Experience Tier
    try to include 9176 table in standard rapidpackage and export 
    use that custom rapidpackage in import

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,245 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,927 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans