Skip to main content

Getting a node by entry Id

Log in to add to favourites

Requesting nodes that have an attached entry can be achieved by using one of the GetByEntryId method overloads.

Get by entry Guid id

Gets a list of nodes by specifiying an entry Guid identifier.

Syntax

C#
public List<Node> GetByEntryId(Guid entryId)
{
}

Parameters

id

Type: Guid
The entry identifier to match the nodes by.

Example

C#
using Zengenti.Contensis.Management;

// Create a client
var client = ManagementClient.Create();

// Retrieve the relevant project
var movieDbProject = client.Projects.Get("moviedb");

// Get a specific node with assigned entry id
List<Node> nodesWithEntryAssigned = movieDbProject.Nodes.GetByEntryId(entryGuid);

Get by entry Guid id async

Gets a list of nodes asynchronously by specifiying an entry Guid identifier.

Syntax

C#
public async Task<List<Node>> GetByEntryIdAsync(Guid entryId)
{
}

Parameters

id

Type: Guid
The entry identifier to match the nodes by.

Example

C#
using Zengenti.Contensis.Management;

// Create a client
var client = ManagementClient.Create();

// Retrieve the relevant project
var movieDbProject = client.Projects.Get("moviedb");

// Get a specific node with assigned entry id
List<Node> nodesWithEntryAssigned = await movieDbProject.Nodes.GetByEntryIdAsync(entryGuid);

Get by entry string id

Gets a list of nodes by specifiying an entry string identifier.

Syntax

C#
public List<Node> GetByEntryId(string entryId)
{
}

Parameters

id

Type: string
The entry identifier to match the nodes by.

Example

C#
using Zengenti.Contensis.Management;

// Create a client
var client = ManagementClient.Create();

// Retrieve the relevant project
var movieDbProject = client.Projects.Get("moviedb");

// Get a specific node with assigned entry id
List<Node> nodesWithEntryAssigned = movieDbProject.Nodes.GetByEntryId("d2fb1cb7-e0c0-4334-bf86-be0f08163953");

Get by entry string id async

Gets a list of nodes asynchronously by specifiying an entry string identifier.

Syntax

C#
public async Task<List<Node>> GetByEntryIdAsync(string entryId)
{
}

Parameters

id

Type: string
The entry identifier to match the nodes by.

Example

C#
using Zengenti.Contensis.Management;

// Create a client
var client = ManagementClient.Create();

// Retrieve the relevant project
var movieDbProject = client.Projects.Get("moviedb");

// Get a specific node with assigned entry id
List<Node> nodesWithEntryAssigned = await movieDbProject.Nodes.GetByEntryIdAsync("d2fb1cb7-e0c0-4334-bf86-be0f08163953");

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request