Root



Returns the Root tree object.



Syntax:

Procedure: Root: IItem

Code Reference:


API Calls

Delphi

PlanSwift Code:


Result := PlanSwift.Root.GetProperty('Folder').ResultAsString;


FreshDesk Code:


procedure TForm1.psSelectItemDialog(Sender: TObject);
var
  ps: IPlanSwift;
  itm: IItem;
begin
  //Create Planswift Interface
  ps := CoPlanswift.Create;
  //Open Item Dialog and select planswift root
  itm := ps.SelectItemDialog('Select An Item','Select An item',ps.Root.FullPath);
  //Show Selected item Name
  ShowMessage(itm.Name + 'Has been selected');
  //Free Planswift
  ps := nil;
 
end;

C#

public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}


Coming soon

VB/VBA (OLE)

Coming soon
Coming soon