Create arbitrary SObjects from Map
Enables commands such as:
resp = Forcex.post("/services/data/v20.0/sobjects/Case/", %{ "Subject" => "API TEST 2", "Priority" => "High", "Origin" => "Web"}, client)
Looking to also implement a helper function for creating SObjects using Forcex.Client. Any thoughts or input?
Coverage remained the same at 0.0% when pulling 82878d2bbc934d7bf16d399117ebecda6ed17835 on sebbean:task/enable-sobject-create-call into cd8b4d21b147d59f3529d96ae25d9ec241c0c10a on jeffweiss:master.
Coverage remained the same at 0.0% when pulling 60618d34c4b8d4e252a67f8d7f76199e819fb271 on sebbean:task/enable-sobject-create-call into cd8b4d21b147d59f3529d96ae25d9ec241c0c10a on jeffweiss:master.
Coverage remained the same at 0.0% when pulling 61a182dcd6bbb474daa2c15afd413c4a20e30e65 on sebbean:task/enable-sobject-create-call into cd8b4d21b147d59f3529d96ae25d9ec241c0c10a on jeffweiss:master.
@sebbean First of all, thank you! I think we already have something that ought to create an SObject from a map: https://github.com/jeffweiss/forcex/blob/master/lib/mix/tasks/compile.forcex.ex#L80 That said, creating and updating SObject is not my primary use case with this lib, so it hasn't gotten any exercise. We probably do need to set the content type. I will do some investigation.