• KevinD
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 0
    Replies
We have an application written in Delphi 7 that we want to integrate with SalesForce in the Support area. I was able to import the SF WSDL (with a bit of patching), Log in and log out OK. However, when I try to work with QueryResults, the generated interface code in Delphi doesn't appear to be correct, and I don't know how to fix it.

So my big question is whether anyone has done work in Delphi before successfully.

The particular problem I'm wrestling with now is with retrieving query results. The generated Delphi code follows below at the end.

From the C# sample code, I see that the QueryResult.records property should be an array, but in the imported WSDL it isn't. Later versions off Delphi do a better job on the WSDL, but don't resolve this problem.

Thanks,

Imported WSDL interface:

  QueryResult = class(TRemotable)
  private
    Fdone: Boolean;
    FqueryLocator: QueryLocator;
    Frecords: sObject;
    Fsize: Integer;
  public
    destructor Destroy; override;
  published
    property done: Boolean read Fdone write Fdone;
    property queryLocator: QueryLocator read FqueryLocator write FqueryLocator;
    property records: sObject read Frecords write Frecords;
    property size: Integer read Fsize write Fsize;
  end;

  sObject = class(TRemotable)
  private
    FfieldsToNull: WideString;
    FId: ID2;
  published
    property fieldsToNull: WideString read FfieldsToNull write FfieldsToNull;
    property Id: ID2 read FId write FId;
  end;