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

How to send data from my SFO to an external API using Apex?

I need to send data from our SFO to an external API. The following information is required;
The API field ids are:
name, postcode, phone, adCode, productRef, email

These field names do not correspond with their counterparts in our SFO, they would need to be 'mapped' somehow.
(On advice from pcon) I have managed to create a trigger that will fire the data to the API when criteria is met. However, I am completely lost as to how to proceed from here. was suggested as my next task. As I have no experience with any programming language is there an alternative route that I could use.

Desperately need assistance - thanks in advance!!
The non-coding option would be to send a message [1] from Saleforce via a workflow to your end system.  This is configuration only [2] inside of Salesforce, but it would require a non-trivial amount of work outside of Salesforce on your external API side.

What you are looking to do is a non-trivial exercise and unfortunately it is not something anyone will just write for you on these boards.  If you have any specific concerns or problems with your code, people can help you fix issues.

If you do not have a Salesforce developer that can do this work for you, you may want to look towards a consulting company and hire someone to do this task for you.


pcon - thanks for your input and advice - appreciate it!

Unfortunately, I do not have access to the API to be able to edit it. I have got to try and make it work from our end.
I followed the instructions here with success
I have also managed to generate an Apex Class by parsing a SF generated in WSDL file within my Sandbox (check me;) 
With this, I edited the FirstName and LastName id to one entry, Name (half of my battle)

How do I fire this 'custom' Apex Class when the trigger is satisfied?

(So pcon - do you do any consultancy work- lol)