Getting the Field Count

Getting the Field Count

Using the Administration API you can request the count of all fields contained in a content type's structure.

To get only the count of the content type fields use the following code snippet:

public async Task<int> GetFieldCount(Guid applicationId, Guid typeId, string masterKey)
{
    var metadata = new EverliveAccount(new EverliveAccountSettings(AuthorizationStrategy.MasterKey, masterKey));
    return await metadata.Application(applicationId).Type(typeId).Fields().GetCount().ExecuteAsync();
}

See Also


Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.