Skip to main content

Arguments

portfolioReference : PortfolioReferenceInput! required

Portfolio reference namespace-value pair to filter by.

Returns

PortfolioType

An object that represents a portfolio.

Allowed Viewers

Customer Partner User Third party

Required Permissions

Can access customer queries
OR Can query portfolios

Query Complexity

2

Examples

The example data in the variables and responses below are autogenerated values designed to resemble real inputs. They do not represent actual customer data, and in some cases may require additional validation.

Query

query PortfolioByReference($portfolioReference: PortfolioReferenceInput!) { portfolioByReference(portfolioReference: $portfolioReference) { accounts { ...AccountConnectionTypeConnectionFragment } ancestors { ...PortfolioConnectionTypeConnectionFragment } billingName brand collectiveBilling createdAt depth descendants { ...PortfolioConnectionTypeConnectionFragment } id leadAccountNumber name number operationsTeam { ...OperationsTeamTypeFragment } parent { ...PortfolioTypeFragment } updatedAt } }

Variables

{ "portfolioReference": PortfolioReferenceInput }

Response

{ "data": { "portfolioByReference": { "accounts": AccountConnectionTypeConnection, "ancestors": PortfolioConnectionTypeConnection, "billingName": "world-always-mother-kitchen-campaign", "brand": "house-remain-think-agency-modern", "collectiveBilling": true, "createdAt": "1975-02-11T18:16:31.036683+00:00", "depth": 42, "descendants": PortfolioConnectionTypeConnection, "id": "21513905", "leadAccountNumber": "A-B5B3A062", "name": "few-teacher-around-end-same", "number": "employee-herself-bring-question-behind", "operationsTeam": OperationsTeamType, "parent": PortfolioType, "updatedAt": "2017-08-10T10:50:57.284580+00:00" } } }