cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Julian_Postertz
Level: Powered On

Problem: Get News from News API

Hi,

 

i tried to create a Newspage in my App using the News API but the Custom Connector i build doesn't work.

 

First of all, the configuration of the Connector:

 

grafik.pngGeneralgrafik.pngSecuritygrafik.pngRequestgrafik.pngDefault Answer

 

After testing the Connector i got following Errormessage:

 

Header

    {
        "content-length": "264",
        "content-type": "application/json"
    }

 

Text

    {
        "error": {
            "code": 500,
            "message": "Expression value is invalid. The template field is required.",
            "source": "europe-001.azure-apim.net",
            "path": "choose[2]\\when[1]",
            "clientRequestId": "b2b54481-016a-4c10-a26c-c477-506f7769"
        }
    }

 

 

I hope, someone can help me.

 

King regards,

Julian Postertz

2 ACCEPTED SOLUTIONS

Accepted Solutions
toedtli
Level: Powered On

Re: Problem: Get News from News API

Hi Julian, 

we've stumbled upon the same problem and were able to resolve it using the following:

- to start with, our ReST-API was https://www.geoportal.ch/search/flaechenblatt/?bfs=3001&liegnr=2176&typ=L
Check that you can query it from the browser and get a JSON-Result back

- In the first section (1.General), do not add search/flaechenblatt/ as part of the host URL:

general.pnggeneral

In part 3.Definition, import from an example, this time indicating (the GET-method and) the full url

After importing the Example, edit the keyword arguments by clicking on the three dots on (dark pink/purple?) background::

definition.png

make sure the fields all have type "string":

definition2.png

After this, the Test succeeds:

Testing.png

 

Hope this helps!

View solution in original post

Julian_Postertz
Level: Powered On

Re: Problem: Get News from News API

Hi toedtli,

 

sry wasn't at work for a while.

Thanks for your solution, worked fine for me too.

 

Best regards

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Problem: Get News from News API

Hi @Julian_Postertz ,

 

Try to open a support ticket here:

Support Ticket PowerApps

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
TopShelf-MSFT
Level 10

Re: Problem: Get News from News API

Hi @Julian_Postertz are you still receiving the error message? Have you opened a support ticket?

 

@TopShelf-MSFT 

toedtli
Level: Powered On

Re: Problem: Get News from News API

Hi Julian, 

we've stumbled upon the same problem and were able to resolve it using the following:

- to start with, our ReST-API was https://www.geoportal.ch/search/flaechenblatt/?bfs=3001&liegnr=2176&typ=L
Check that you can query it from the browser and get a JSON-Result back

- In the first section (1.General), do not add search/flaechenblatt/ as part of the host URL:

general.pnggeneral

In part 3.Definition, import from an example, this time indicating (the GET-method and) the full url

After importing the Example, edit the keyword arguments by clicking on the three dots on (dark pink/purple?) background::

definition.png

make sure the fields all have type "string":

definition2.png

After this, the Test succeeds:

Testing.png

 

Hope this helps!

View solution in original post

Julian_Postertz
Level: Powered On

Re: Problem: Get News from News API

Hi toedtli,

 

sry wasn't at work for a while.

Thanks for your solution, worked fine for me too.

 

Best regards

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,702)