web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How do I format the ti...
Power Automate
Unanswered

How do I format the title of an array item in Swagger for custom connector?

(0) ShareShare
ReportReport
Posted on by

Hello,

I am creating a custom connector which includes arrays. The development works fine, but how do I set the name of the nested items? Setting the name for the field 'project id' with its description worked fine, but how do I set the name of product_id properly, similar to project_id?

I want to get rid of the grouped_lines Line item Product_id part and set my own title

Here is part of my Swagger YAML:

 

 

 

 /invoices.draft:
 post:
 responses:
 summary: Invoices Draft
 description: Draft a new invoice.
 operationId: invoices.draft
 parameters:
 - name: body
 in: body
 required: true
 schema:
 type: object
 required:
 properties:
 project_id:
 type: string
 title: Project id
 description: eg. 624ca743-8998-4f8c-add1-c427bb022166
 grouped_lines:
 type: array
 items:
 type: object
 properties:
 section:
 type: object
 properties:
 title:
 type: string
 title: Section title
 description: title
 description: section
 line_items:
 title: Line item
 type: array
 items:
 type: object
 required:
 - quantity
 - description
 - unit_price
 - tax_rate_id
 properties:
 quantity:
 type: integer
 format: int32
 title: Quantity of item
 description: '10'
 default: 1
 product_id:
 type: string
 title: Product id
 description: eg. d905ff57-e866-0f59-9d1e-1fd4538bfae1

 

 

 

Screenshot_20230111_010847.png

Categories:
I have the same question (0)
  • Community member Profile Picture
    on at

    The title is concatenation of the tiles of the nested elements.

    So, add a proper title for the grouped_lines. I dont know if you can set it to empty or spaces. But, hopefully this gives you some idea.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard