function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KevinDKevinD 

Can Delphi be used for SF Integration?

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;
Shanky77Shanky77
Hi Kevin,
I believe u are on the second level of integration. I am struggling with the 1st level only.
I have partner wsdl in place and when I am trying to do "Generate from WSDL" It has generated the
two apex classes but third one is having problem due to its size. I split it but it is not saving, giving multiple errors
may be because most of the public classes referring one another. How to resovle. Once it is done then how to create
1st java class to verify the external API invokation.

Advance thanks and awaiting response
Shanky..
Shanky77Shanky77

Hi Kevin,

I believe u are on the second level of integration. I am struggling with the 1st level only. I have partner wsdl in place and when I am trying to do "Generate from WSDL" It has generated the two apex classes but third one is having problem due to its size. I split it but it is not saving, giving multiple errors may be because most of the public classes referring one another. How to resovle. Once it is done then how to create 1st java class to verify the external API invokation.

 

 

Advance thanks and awaiting response

Shanky..

SergeiSergei
Hi Kevin, the answer to your question is yes. I found an article about Delphi Salesforce integration (http://blog.devart.com/developing-applications-with-salesforce-crm-integration-in-delphi.html) where described how to develop apps with Salesforce CRM integration in Delphi. 
Enjoy.