Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

How to list catalogProduct with pagenation? #1348

@j4zzlee

Description

@j4zzlee

I'm calling SOAP service from C# application, I need to list all products that are enabled (status = 2) with pagination (pageSize = 500). the filter object only let me filter the status. How could I add pagination to the query?

            var filters = new filters
            {
                filter = new List<associativeEntity>
                {
                    new associativeEntity
                    {
                        key = "status",
                        value = "2"
                    }
                }.ToArray()
            };
            var client = (PortTypeClient) IndexItem.Indexer.Connection.ApiConnector.Client;
            var entities = client
                .catalogProductList(
                    ((ISoapApiConnector)IndexItem.Indexer.Connection.ApiConnector).SessionId,
                    filters,
                    IndexItem.Indexer.Connection.ResourceConnection.StoreId
                );

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions