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
thirdimage

Power Automate 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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 387 members 6,403 guests
Please welcome our newest community members: