dustinfarris

dustinfarris

Working with the Salesforce API

Anyone have experience using Salesforce API in Elixir? Am trying to integrate their REST API and streaming API. jeffweiss/forcex looks like a nice start on the REST API — are there others I’m not seeing? Open to just rolling something on my own.

Any tips/cautions would be greatly appreciated.

First Post!

krapans

krapans

Looks like a good start in that library. The only thing you should be aware that it’s not fully finished. There is a list with REST endpoints which are not implemented into library yet.

Most Liked

MrDoops

MrDoops

I’m currently using ex_force for my Salesforce REST API integrations. It’s using an up to date version of Tesla (http client), works with Jason, and I’ve found it pretty straightforward to use. Currently have a separate module for Auth concerns and some basic caching using Cachex for tokens and metadata like record type ids.

dustinfarris

dustinfarris

I also found chulkilee/ex_force. It’s brand new which I guess is why it didn’t turn up in my initial web search. The code looks well written and tested — think I’m going to give it a try.

rio517

rio517

I’d also be curious if you were able to integrate with salesforce streaming API.

Based on this discussion ending in April 2019, their aren’t many options. In that thread, they reference two libraries, both of which appear unmaintained. I bet with a week of love, either of those libraries could be made current and be fine.

What was your mileage?

Last Post!

dimitarvp

dimitarvp

Oh I see, there are multiple steps before authentication. Yeah, that can be nasty.

Well… might be a good opportunity for you to devise and open-source it then!

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New

We're in Beta

About us Mission Statement