cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Re: 404 error trying to consume custom connector for Business Central

Hi

 

I don't think there is any solution to the problem right now.

 

The standard connector works with standard endpoint, yes but there are very few standard endpoints, so to work with

PowerApps that connect to Business Central is very very very limited.  

 

But people can vote up the request to Microsoft, that the Standard Connector can be extended with custom APIs like it is on the Dynamics NAV standard connector.

https://experience.dynamics.com/ideas/idea/?ideaid=e0d0a4f9-5467-e911-b047-0003ff68932e

Highlighted
Helper I
Helper I

Re: 404 error trying to consume custom connector for Business Central

Hi,

I got at little help to find a way. So now it's working \o/

You cannot have tenantid or companyid as part of the url in the custom connector. These must be variables.

When I call my custom connector function, I call them like this:

ClearCollect(collCustomers,myCustomConnector.GetCustomerItems("1111111-aaaaaaa-22222222-bbbbb", "Production","5e201ae1-88d1-ea11-bb55-000d3a228e0e"))

Parameter 1 is tenantid, 2 is environmentname and 3 is companyid.

A lesser ugly way of calling it is to store these values in global parameters and use them in app. Maybe there's even a prettier way, to maybe provide them like username and password...

Highlighted
Frequent Visitor

Re: 404 error trying to consume custom connector for Business Central

Hi MadW

 

Interesting.

 

Can you share a screenshot of your definition of the Custom Connector?

 

I'm a little puzzled how this works.

Highlighted
Helper I
Helper I

Re: 404 error trying to consume custom connector for Business Central

Here you go.

Basic info on host and base, and then params in definition url 

CustomConnect_HostBase.pngCustomConnect_Definition.png

Highlighted
Frequent Visitor

Re: 404 error trying to consume custom connector for Business Central

Hi MadW

 

I have some problems doing the same, to get some data back. 

 

Are you sure you have done this example in PowerApps and not in Flow. The colors looks like

the standard colors from the Flow development tool ?

(In Flow it works, but not in PowerApps)

 

Highlighted
Helper I
Helper I

Re: 404 error trying to consume custom connector for Business Central

Hi,

 

I am completely sure it is working in PowerApp. Colors are "flow like" because I added connector to my solution, and some how it shows Flow colors when navigating to solution...

 

Maybe you could share a screenshot from your connection?

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,408)