To open any link in a new tab, preserving your position in the current article, just hold down the <CTRL> key on your keyboard before clicking the link or click using your mouse wheel.
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Current »

GetItemByGUID



Returns the child item specified by aGUID.



Syntax:

Procedure: GetItemByGUID(aGUID: String): IItem;


API Calls

Delphi

Using PlanSwift Object Model
// PlanSwift Code:


AItem := Item.GetItemByGUID(Item.ParentItem.GUID);
If VarIsClear(AItem) then
  Result := 'Not Found'
Else
  Result := AItem.Name;


//FreshDesk Code:


var
  ps: IPlanSwift;
  est: IItem;
  itm: IItem;
  aitm: IItem;
begin
  // Create the Planswift Interface
  ps := coPlanswift.Create;
  // Get The Estimating Tab
  est := ps.GetItem('Job\Takeoff');
  // Create a new item
  itm := est.NewItem('Area', 'DoRecord Example');
  // Get That Item By GUID
  aitm := itm.GetItemByGUID(itm.GUID);
  // Show Item Name got by guid
  ShowMessage('Item Got BY GUID is: ' + aitm.Name);
  // Free Planswift
  ps := nil;

C#

Using IItem Object Model
public class PlanswiftApi
{
    private PlanSwift Planswift { get; }
    public PlanSwiftApi()
    {
        Planswift = new PlanSwift();
    }
}
Using PlanSwift Object Model
Coming soon

VB/VBA (OLE)

Using IItem Object Model
Coming soon
Using PlanSwift Object Model
Coming soon
  • No labels