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
You should be able to pass in a JSON object from Power Apps using the JSON function.
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.
Sorry.. for the late reply
How did you mange to get the collection as Input? what is the datatype to be chosen for this?
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"
}
}