Skip to main content

Notifications

Announcements

No record found.

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

Create customer API for Sandbox and On premise version

(0) ShareShare
ReportReport
Posted on by 5

Hi everyone,

I have developed a new app extension and I have pushed it into the app source. we have developed with licenses in specific ranges (object ID: 1,000,000-69,999,999, 70,000,000-74,999,999).
My application is based on Rest API.

The app is working fine for our customers in sandbox.

But i have some customers who have the on-premise version. we need to install the app. and i have two issues there:

1- Installing the app: I know it is not possible to install from the app source and because of the reach it is not allowed to push/upload the app directly.

=> I read in some forums that it is possible to create a new instance with development license and push the app and remove the instance later. Is there any other suggestion for this problem?

2- In my app extension, I developed page API and was needed to define the property of the URL: APIPublish, APIGroup and APIVersion.

I have set the APIVersion to V2.0. the URL work fine in the sandbox and I don't have any problem there.

But when I try my app in the on-premise version, it was not the case, I have an error message:

{
"Error: {
"code": "Unknown",
"message": "Sequence contains more than one matching item"
}
}

the only URL that works fine in the on-premises version when I removed the APIVersion and in the URL, I used "beta".
Is there any idea about this issue I need to set the same API for both versions sandbox or on-premise?
I have tested in BC 20 on-premise and in BC 21.5 sandbox.

 
  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: Create customer API for Sandbox and On premise version

    Hello  Rayene- We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

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

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,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans