cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
marine_adz
Frequent Visitor

Custom Connector with multipart/form-data - missing header

I have set up a custom connector to an external system, successfully using get, post and delete using strings but am stuck on a couple of key functions where the Postman collection sets out multipart/form-data (even though one of the entries doesn't use a file).

 

When I test, it returns an error - looking at the request header, no content type is shown, only authentication - I've seen in other posts example request headers in the connector test screen that include it, so I'm fairly confident it can be done, just not sure how!

 

In the Swagger editor (swagger: '2.0') the following definition is set out:

 

 

/user_update_group/{user_id}:
  post:
    operationId: UpdateUserGroup
    summary: Update User Group
    description: Change the value of the user group assignment
    consumes: [multipart/form-data]
    parameters:
    - {name: user_id, default: '', in: path, type: string, required: true}
    - {name: group_name, in: formData, type: string, required: true, description: Group name}
    responses:
      default:
      description: default
      schema: {}

 

 

Any help gratefully received!

3 REPLIES 3
marcelofabiansc
Regular Visitor

Did you solve this? I'm on a similar situation.

Sadly not, we were lucky enough to be able to persuade the developers of the external system to modify their API to accept application/json.  Best of luck!

marcelofabiansc
Regular Visitor

ahh nice solution jeje thanks for answering ! 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,951)