Skip to main content

Notifications

Power Automate - Connector Development
Unanswered

Custom Connector - How to get the JSON from the user and place it in the body of the request?

(0) ShareShare
ReportReport
Posted on by 62

Hello,

 

I am building a custom connector for an application. One of the POST endpoint requires a JSON body as

 

{
"itemData": {
"Name": "string",
"Priority": "High",
"SpecificContent": {
"additionalProp1": {},
"additionalProp2": {},
"additionalProp3": {}
},
"DeferDate": "2021-07-28T13:07:46.546Z",
"DueDate": "2021-07-28T13:07:46.546Z",
"RiskSlaDate": "2021-07-28T13:07:46.546Z",
"Reference": "string",
"Progress": "string"
}
}

 

When i import from a sample, All parameters are recognized and added to the parameters except SpecificContent which is a JSON object and dynamic. How do i make this as one of the input field to accept JSON from the user?

 

Thanks

  • HEATFreight Profile Picture
    HEATFreight 1,020 on at
    Re: Custom Connector - How to get the JSON from the user and place it in the body of the request?

    You should be able to pass in a JSON object from Power Apps using the JSON function.

  • HEATFreight Profile Picture
    HEATFreight 1,020 on at
    Re: Custom Connector - How to get the JSON from the user and place it in the body of the request?

    He's doing that in Power Automate. You add a new action to a flow and select the >Custom tab and your custom connector should be there.

  • Dinesh Profile Picture
    Dinesh 62 on at
    Re: Custom Connector - How to get the JSON from the user and place it in the body of the request?

    Sorry.. for the late reply

     

    How did you mange to get the collection as Input? what is the datatype to be chosen for this?

  • Dinesh Profile Picture
    Dinesh 62 on at
    Re: Custom Connector - How to get the JSON from the user and place it in the body of the request?

    Thanks for your reply!

     

    Currently it getting handled in that way. Additional prop 1, 2 and 3 are getting defined as input from the sample. But my JSON for specific content is dynamic. The properties in specific content will vary in each case. So, looking for an option to accept the specific content object from user

     

    Ex:

    {
    "itemData": {
    "Name": "string",
    "Priority": "High",
    "SpecificContent": {
    "additionalProp3": "Test"
    },
    "DeferDate": "2021-07-28T13:07:46.546Z",
    "DueDate": "2021-07-28T13:07:46.546Z",
    "RiskSlaDate": "2021-07-28T13:07:46.546Z",
    "Reference": "string",
    "Progress": "string"
    }
    }

     

    Example 2:

    {
    "itemData": {
    "Name": "string",
    "Priority": "High",
    "SpecificContent": {
    "Name": "Dinesh",
    "City": "London"
    },
    "DeferDate": "2021-07-28T13:07:46.546Z",
    "DueDate": "2021-07-28T13:07:46.546Z",
    "RiskSlaDate": "2021-07-28T13:07:46.546Z",
    "Reference": "string",
    "Progress": "string"
    }
    }

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics