Steve Sinclair 1 Posted September 1, 2020 I've been asked to integrate a Delphi application with Salesforce. Salesforce are using a publisher/subscriber system they want us to subscribe to. I have no experience with this and am not sure where to start. Would anyone be able to give me some pointers on how to do this? Their developers asked me to look at COMETD https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_subscribe_cometd.htm . The process should be a simple one. They create a work order , we subscribe to an endpoint and then post pack some JSON once we are done. I think I can write back the completed work order using a POST to the given endpoint but I have no idea how to subscribe to get new work orders. Share this post Link to post
Rollo62 536 Posted September 1, 2020 Not sure if CData Firedac covers all features what you need, but its possible to connect Salesforce. Share this post Link to post
Steve Sinclair 1 Posted September 2, 2020 Thanks Rollo I did look at that but It seems it has every standard object of Salesforce but it doesn’t have WokOrder Object or FSL Objects. I think I will have to use something other than Delphi to do this. Share this post Link to post
Lars Fosdal 1792 Posted September 2, 2020 The API looks like standard REST and JSON format. https://developer.salesforce.com/docs/atlas.en-us.226.0.api_rest.meta/api_rest/intro_what_is_rest_api.htm Should be doable with Delphi. There also is a SOAP API, it seems. Share this post Link to post
Steve Sinclair 1 Posted September 2, 2020 It's the "long polling" subscription method that they want me to use. I'm trying to get them to do the standard REST stuff. It doesn't seem too hard to do from their side but if I can't get them to move on that I think I will have to use Java. I found a tutorial on you tube https://www.youtube.com/watch?v=uO3B9Qmg4qc which shows how to make your own endpoints in SalesForce. I've sent it to them and asked them to have a think - I'll have to wait to see what they say. Thanks Lars and Rollo for your comments. I'll let you know how it goes. 1 Share this post Link to post