Disclaimer: This website requires Please enable JavaScript in your browser settings for the best experience.

Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideLegal TermsNuGetDev CommunityOptimizely AcademySubmit a ticketLog In
Dev Guide

getParent

Queries the ID of a parent folder in Optimizely Campaign.

Type: long

Parameters

NameTypeValue
sessionIdStringID of the current session
folderIdStringID of the queried folder

Return values

ID of the parent folder

If the queried folder does not have a parent folder, -1 is returned.

Code structure

long getParent(String sessionId, long folderId)