question

InactiveAutoUser avatar image
0 Likes"
InactiveAutoUser asked

findingItemsAdvanced: itemFilter ListingType not working

I'm trying to do a findItemsAdvanced call using coldfusion filtering by ListingType.  However, this isn't working.

 

<cfhttp method="get" url="http://svcs.ebay.com/services/search/FindingService/v1">
        <cfhttpparam type="formField" name="OPERATION-NAME" value="findItemsAdvanced">
        <cfhttpparam type="formField" name="SERVICE-VERSION" value="1.11.1">
        <cfhttpparam type="formField" name="SECURITY-APPNAME" value="SomeLongCharVar">
        <cfhttpparam type="formField" name="RESPONSE-DATA-FORMAT" value="XML">
        <cfhttpparam type="formField" name="keywords" value="#form.keywords#">
        <cfhttpparam type="formField" name="itemFilter(0).name" value="MinPrice">
        <cfhttpparam type="formField" name="itemFilter(0).value" value="#form.filter0#">
        <cfhttpparam type="formField" name="itemFilter(1).paramName" value="Currency">
        <cfhttpparam type="formField" name="itemFilter(1).paramValue" value="USD">
        <cfhttpparam type="formField" name="itemFilter(2).name" value="MaxPrice">
        <cfhttpparam type="formField" name="itemFilter(2).value" value="#form.filter1#">
        <cfhttpparam type="formField" name="itemFilter(3).paramName" value="Currency">
        <cfhttpparam type="formField" name="itemFilter(3).paramValue" value="USD">
        <cfhttpparam type="formField" name="itemFilter(4).paramName" value="ListingType">
        <cfhttpparam type="formField" name="itemFilter(4).paramValue" value="Auction">
        <cfhttpparam type="formField" name="paginationInput.entriesPerPage" value="40">
        <cfhttpparam type="formField" name="paginationInput.pageNumber" value="3">
        <cfhttpparam type="formField" name="sortOrder" value="#form.sortorder#">
        <cfhttpparam type="formField" name="categoryId" value="12345">
        <cfhttpparam type="formField" name="affiliate.customnId" value="MyTestStore">
        <cfhttpparam type="formField" name="affiliate.networkId" value="9">
        <cfhttpparam type="formField" name="affiliate.trackingId" value="blahblahblah">
    </cfhttp>

 

If you don't know coldfusion, tha'ts ok, this is pretty legible.  As you can see above, i'm using paramName=ListingType and paramValue="Auction".  My xml results still show BuyItNow items.

 

Am I doing something wrong? Is this a bug?

 

thanks!

Chris

findingitemsadvancedlistingtype
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
InactiveAutoUser avatar image
0 Likes"
InactiveAutoUser answered

Figured it out:

 

<cfhttpparam type="formField" name="itemFilter(4).name" value="ListingType">
<cfhttpparam type="formField" name="itemFilter(4).value(0)" value="Auction">

 

change paramName to name

change paramValue to value(0)

 

value(0) is an array notation as you can have multiple ListingTypes

 

Ex.

ItemFilter(4).value(0) value="Auction"

ItemFilter(4).value(1) value="BuyItNow"

ItemFilter(4).value(2) value="FixedPrice"

 

This will bring back all listingtypes: auction, buyitnow and fixedprice.

 

HTH people!

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.