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 / Error executing the AP...
Power Automate
Unanswered

Error executing the API with x-ms-dynamic-values

(0) ShareShare
ReportReport
Posted on by

I am trying to retrieve a list for a path parameter and here's my defintion but getting the below error:

 

This's how my connector looks:

Here's my operation definition:

 "/oss/v2/buckets": {
 "x-summary": "Buckets",
 "x-description": "Buckets related operations",
 "post": {
 "operationId": "create_bucket",
 "description": "Use this endpoint to create a bucket. Buckets are arbitrary spaces created and owned by applications. Bucket keys are globally unique across all regions, regardless of where they were created, and they cannot be changed. The application creating the bucket is the owner of the bucket.\n",
 "parameters": [
 {
 "$ref": "#/parameters/x-ads-region"
 },
 {
 "$ref": "#/parameters/post_buckets"
 }
 ],
 "responses": {
 "200": {
 "$ref": "#/responses/post_bucket_OK"
 },
 "400": {
 "$ref": "#/responses/BAD_REQUEST"
 },
 "401": {
 "$ref": "#/responses/UNAUTHORIZED"
 },
 "403": {
 "$ref": "#/responses/FORBIDDEN"
 },
 "409": {
 "$ref": "#/responses/CONFLICT"
 },
 "500": {
 "$ref": "#/responses/INTERNAL_SERVER_ERROR"
 }
 },
 "security": [
 {
 "oauth2_application": [
 "bucket:create"
 ]
 }
 ],
 "x-ads_command_line_example": "curl -v \"https://developer.api.autodesk.com/oss/v2/buckets\" -X POST -H \"Content-Type: application/json\" -H \"Authorization: Bearer kgEJWMJitdYbhfxghap8SbZqXMoS\" -d '{\"bucketKey\":\"apptestbucket\",\"policyKey\":\"transient\"}'",
 "tags": [
 "Buckets"
 ]
 },
 "get": {
 "operationId": "get_buckets",
 "description": "This endpoint will return the buckets owned by the application. This endpoint supports pagination.\n",
 "parameters": [
 {
 "$ref": "#/parameters/region"
 },
 {
 "$ref": "#/parameters/limit"
 },
 {
 "$ref": "#/parameters/startAt"
 }
 ],
 "responses": {
 "200": {
 "$ref": "#/responses/get_buckets_OK"
 },
 "400": {
 "$ref": "#/responses/BAD_REQUEST"
 },
 "401": {
 "$ref": "#/responses/UNAUTHORIZED"
 },
 "403": {
 "$ref": "#/responses/FORBIDDEN"
 },
 "404": {
 "$ref": "#/responses/NOT_FOUND"
 },
 "500": {
 "$ref": "#/responses/INTERNAL_SERVER_ERROR"
 }
 },
 "security": [
 {
 "oauth2_application": [
 "bucket:read"
 ]
 }
 ],
 "x-ads_command_line_example": "curl -v \"https://developer.api.autodesk.com/oss/v2/buckets\" -X GET -H \"Authorization: Bearer RhS6iEVMnEfl77MBSK3l2je06UHj\"",
 "tags": [
 "Buckets"
 ]
 }
 }

And here's my parameter defintion:

"get_buckets": {"name":"bucketKey",
 "type": "string",
 "in": "path",
 "description": "Select bucket",
 "required": true,
 "x-ms-summary": "Select List",
 "x-ms-dynamic-values": {
 "operationId": "get_buckets",
 "value-path": "items[bucketKey]",
 "value-title": "items[bucketKey]"
 }
}

And finally the response entity (the bucket object) defintion:

"get_buckets_OK": {
 "description": "OK, Success.",
 "schema": {
 "title": "buckets",
 "type": "object",
 "required": [
 "items",
 "next"
 ],
 "properties": {
 "items": {
 "description": "Array of items representing the buckets",
 "type": "array",
 "items": {
 "type": "object",
 "required": [
 "bucketKey",
 "createdDate",
 "policyKey"
 ],
 "properties": {
 "bucketKey": {
 "description": "Bucket key",
 "type": "string"
 },
 "createdDate": {
 "description": "Timestamp in epoch time",
 "type": "integer",
 "format": "int64"
 },
 "policyKey": {
 "description": "Policy values: `transient`, `temporary` or `persistent`\n",
 "type": "string",
 "enum": [
 "transient",
 "temporary",
 "persistent"
 ]
 }
 }
 }
 },
 "next": {
 "description": "Next possible request",
 "type": "string"
 }
 }
 }
 }

 

Any ideas?

 

 

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    Have you tried to update the connection of the action or just click Enter custom value to typebucketKey.

    Could you provide more details about creating this custom connector? It is helpful for us to analyze the problem.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at
    Entering a custom value works but that’d defeat the purpose of having a droplist populated by data fetched from our endpoint.

    How shld we update the connection of this action?

    What other details would you like to aid your analysis?
  • Community Power Platform Member Profile Picture
    on at

    @v-bacao-msft any ideas to my reply above? What other details do you need to look into? It’s critical for us to get this sorted ASAP. Thanks!


    @v-bacao-msft wrote:

    Hi @Anonymous ,

     

    Have you tried to update the connection of the action or just click Enter custom value to typebucketKey.

    Could you provide more details about creating this custom connector? It is helpful for us to analyze the problem.

     

    Best Regards,


     

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard