// PlanSwift Code:
Result := Item.GUID;
// 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', 'GUID Example');
// Get the Item by Guid
aitm := est.GetItemByGUID(itm.GUID);
// Show Item
ShowMessage(aitm.Name);
// Free Planswift
ps := nil;
end; |