GetPropertyFormula



Returns the formula string for the property specified by ItemPath and PropertyName.
Returns an empty string ('') if the item or property is not found.



Syntax:

Procedure: GetPropertyFormula(ItemPath, PropertyName: String): String;

Code Reference:


API Calls

Delphi

// PlanSwift code:
Result := PlanSwift.GetPropertyFormula(ItemPath, 'Name');

//FreshDesk code:
procedure psgetPropertyFormula;
var
  ps: IPlanSwift;
  itm: IItem;
  propvalue: WideString;
begin
  //Create the Planswift Interfacev
  ps := coplanswift.Create;
  //Get the selected Item
  itm := ps.SelectedItem;
  //Set the property value
  propvalue := ps.GetPropertyFormula(itm.GUID,'Name');
  //Chece if Property value is empty
  if propvalue <> '' then
    ShowMessage(propvalue);
  //Free Planswift Interface
  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