Documentation > Services API > ServicesTMF > GetRelList(Int32,String,String,Boolean,Int32)

GetRelList

Loops through relation config folder and creates list of relationship assets

public List<Asset> GetRelList(Int32,String,String,Boolean,Int32)


Returns

Filtered list of assets.

Parameters

NameDescriptionType
id Asset ID. System.Int32
relationshipType Specifies if the nId Asset has a "source" or "destination" relationship with another asset. System.String
sitePath _TMF folder path. System.String
addDestinationId Adds nId as a "destination" as well, even if it is a "source". System.Boolean
listLimit Sets a limit to the number of assets in the list. System.Int32

Code Example

C#

Sample:

            List<Asset> relationshipList = ServicesTMF.GetRelList(id, "source", sitePath);
            

Connect with Crownpeak