cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Super User
Super User

Custom Connector Action Error

Hello,

I have a REST endpoint that will take 3 parameters. Each set of parameters returns a different JSON schema.

Examples

Request: `https://api.mycompany.com/getData` (Blank request returns list of "States")

Response

{
    "stateList": [
        {
            "stateInfo": {
                "city": "ABERNATHY",
                "state": "AR"
            },
        {
            "stateInfo": {
                "city": "ALUETA",
                "state": "AR"
            },
        {
            "stateInfo": {
                "city": "ALUIT",
                "state": "CA"
            }
    ]
}
      

Request: `https://api.mycompany.com/getData?state=cool&city=awesome` (State and City return Population info)

Response:

{
    "stateList": [
        {
            "populationInfo": [
                {
                    "population": "4223",
                    "numberOfHomes": "300"
                }
            ]
        }
    ]
}

Request: `https://api.mycompany.com/getData?state=cool&city=awesome&population=100` (State, City and Population returns detailed info)

Response:

{
    "stateList": [
        {
            "stateInfo": {
                "city": "KANCITY  ",
                "state": "MO"
            },
            "personInfo": [
                {
                    "population": "430",
                    "demographicInfo": [
                        {
                            "personID": "400",
                            "contractInfo": {
                                "employed": "Y",
                                "durationOfEmployment": "3556",
                                "lastEventTimestamp": "2019-02-15 01:10:00.0",
                                "contractDaysRemaining": "123"
                            }
                        },
                        {
                            "personID": "120",
                            "contractInfo": {
                                "employed": "Y",
                                "durationOfEmployment": "355",
                                "lastEventTimestamp": "2019-02-15 01:10:00.0",
                                "contractDaysremaining": "123"
                            }
                        }
                    ]
                }
            ]
        }
    ]
}

I tried to make all of these GET requests into seperate ACTIONS within a SINGLE custom connector, but received the error "unable to use the same request for multiple actions" or something like that.

Anyone have experience with this?

Basically, is it possible to combine these types of similar GET requests into a single Custom Connector with different shaped RESPONSES?

 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, August 21st at 8am PDT

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

SixthImage

Power Summit Australia 2019

August 20-23rd 2019

Users Online
Currently online: 141 members 5,944 guests
Please welcome our newest community members: