postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Path Variables aren't supported when used in parentheses

Open MattJenko opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

When trying to interface with Microsoft Dynamics API's they like to use the following notation for REST API's GET /path/to/company(companyId)

If I create a request that attempts to use the format as the following then I don't get path variables to be able to set per request. GET /path/to/company(:companyId)

This is true even if I URL encode the parentheses GET /path/to/company%28:companyId%29

Steps To Reproduce

  1. Create New Request
  2. Add URL with path variable in above format: `GET https://example.com/:tenancy/companies(:companyId)/invoices

Screenshots or Videos

image

Operating System

macOS

Postman Version

11.1.13

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

MattJenko avatar Jun 06 '24 05:06 MattJenko

I'm backing this up. I also have a frequent necessity to be able to define path variables that do not directly follow the forward slash character:

{{baseUrl}}/path/to/the/resource/code=:entityCode

Being able to start your variable anywhere in the path would be a welcomed feature.

On a separate note - this is definitely not a macOS specific issue - shouldn't be flagged as such.

GauntletPL avatar Aug 07 '24 06:08 GauntletPL

This could be a good feature since some public api like IFS Cloud is using this format {{BASE__URL}}/main/ifsapplications/projection/v1/UserHandling.svc/Users(Identity='Identity') When changing to {{BASE__URL}}/main/ifsapplications/projection/v1/UserHandling.svc/Users(Identity='/:Identity/'), it work but the final result looks like this {{}BASE_URL}/main/ifsapplications/projection/v1/UserHandling.svc/Users(Identity='/:Identity/'), so with the remaining /

MGREMY avatar Nov 18 '24 22:11 MGREMY

Came across this today, a bit annoying

Xriuk avatar Jan 24 '25 13:01 Xriuk

+1. This used by Salesforce B2C Commerce Cloud OCAPI Shop API

/shop/products/(1234,5667,93482)

nwelchbauer-disney avatar Mar 13 '25 15:03 nwelchbauer-disney

+1. I Too have an API that uses (), like {{baseurl}}/HSPMemberServices/Member(#)/FullProfile. Without the ability to pass parameters into the URL, my ability to automate flows in Postman will be severely limited.

LanaCCHP avatar May 12 '25 18:05 LanaCCHP

OData using path variables inside parentheses is not supported for me

jshakya avatar Jul 11 '25 16:07 jshakya