You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Databasedotcom changed over to the Restorce gem. Haven't been able to fully test yet BUT that'll be better checked when the website is updated
* Removed byebug
* PR comments
* remove delayed_job enqueue call (#33)
* remove delayed_job enqueue call
* .to_json attributes to allow activesupport to be able to serialize any datatype
* Some PR changes and updates to the readme file
Co-authored-by: James Haig <jhaig@infotech.com>
An array of Salesforce attributes which should be synced asynchronously, defaults to an empty array. When an object is saved and only attributes contained in this array, the save to Salesforce will be queued and processed asyncronously.
195
195
Use this carefully, nothing is done to ensure data integrity, if multiple jobs are queued for a single object there is no way to guarentee that they are processed in order, or that the save to Salesforce will succeed.
The "Id" attribute of the corresponding Salesforce object, defaults to _Id_.
213
213
214
214
````ruby
215
-
:salesforce_id_attribute_name =>:Id
215
+
salesforce_id_attribute_name::Id
216
216
````
217
217
218
218
#### web_id_attribute_name
219
219
The field name of the web id attribute in the Salesforce Object, defaults to _WebId__c_
220
220
221
221
````ruby
222
-
:web_id_attribute_name =>:WebId__c
222
+
web_id_attribute_name::WebId__c
223
223
````
224
224
225
225
#### activerecord_web_id_attribute_name
226
226
The field name of the web id attribute in the Active Record Object, defaults to id
227
227
228
228
````ruby
229
-
:activerecord_web_id_attribute_name =>:id
229
+
activerecord_web_id_attribute_name::id
230
230
````
231
231
232
232
#### salesforce_sync_web_id
233
233
Enable or disable sync of the web id, defaults to false. Use this if you have a need for the id field of the ActiveRecord model to by synced to Salesforce.
234
234
235
235
````ruby
236
-
:salesforce_sync_web_id =>false
236
+
salesforce_sync_web_id:false
237
237
````
238
238
239
239
#### additional_lookup_fields
@@ -250,37 +250,37 @@ different web object. Defaults to the model name. This would generally be used i
250
250
into a larger SF object like Contact.
251
251
252
252
````ruby
253
-
:web_class_name =>'Contact',
253
+
web_class_name:'Contact',
254
254
````
255
255
256
256
#### salesforce_object_name
257
257
Optionally holds the name of a method which will return the name of the Salesforce object to sync to, defaults to nil.
# Finds a salesforce record by its Id and returns nil or its SystemModstamp
147
148
defsystem_mod_stamp
148
-
hash=JSON.parse(SF_CLIENT.http_get("/services/data/v#{SF_CLIENT.version}/query",q: "SELECT SystemModstamp FROM #{salesforce_object_name} WHERE Id = '#{salesforce_id}'").body)
0 commit comments