Skip to main content
12 votes
Accepted

What is the major benefit of using Remote Objects

The benefit of Remote Objects is that you can access server data without using API calls or writing Apex Code. It's slower than the AJAX toolkit and the RemoteAction annotation (see this question), ...
sfdcfox's user avatar
  • 495k
7 votes

What is the major benefit of using Remote Objects

Apart from the advantages listed in the previous answer ,The other advantage is the CRUD/FLS is automatically taken care in case of Remote Objects if you are thinking about ISV apps . Normally in ...
Mohith Shrivastava's user avatar
6 votes
Accepted

Remote object: invalid field specified. Ensure that you use the full API name for any custom fields

The issue is here because the FLS for the field has not been provided . Please note that remote objects by default respect CRUD/FLS settings configured by your salesforce admins
Mohith Shrivastava's user avatar
5 votes
Accepted

remote object AND condition

I presume you're getting the following error: Invalid criteria specified for retrieval. ValidationError [code=11, message=Data does not match any schemas from "oneOf", path=/where, schemaKey=null] ...
sfdcfox's user avatar
  • 495k
4 votes
Accepted

Remote Objects do not work when rendered as PDF?

According to this article: PDF rendering doesn’t support JavaScript-rendered content.
JRiffe's user avatar
  • 1,663
4 votes
Accepted

Jquery AutoComplete in Visualforce Page

This is not really a SFDC question, but I’ll tackle it anyway. On your JavaScript, your return code searches for the controls to update by using the jQuery selector $ (as in id$=“conName”). This ...
Sebastian Kessel's user avatar
4 votes
Accepted

Is it possible to define "fields" attribute of <apex:remoteObjects> without hardcoding its values?

The obvious way to try this is to set the fields list to a Visualforce expression. Unfortunately, although that does compile, it doesn't work: <apex:remoteObjects jsNamespace="Test"> <...
David Reed's user avatar
  • 93.2k
2 votes
Accepted

How to pass nested collection within JavaScript remoting

Remote Method Overrides in Remote Objects example uses Map<String, Object> as third parameter in RemoteAction. That's useful, because we could send any primitive or any collection of primitives ...
Ilya Lepesh's user avatar
  • 4,125
2 votes
Accepted

Error in retrieving remote objects

I did some testing with your model and my observation is that the query does not seem to like it (ha) when you use a like clause which does not include a wildcard. I tried with just FirstName, just ...
Adrian Larson's user avatar
  • 150k
2 votes
Accepted

Using Remote Objects in JavaScript to query parent Object field

The documentation doesn't state any particular limitation, but it appears that you cannot query parent or child records. Instead, you'll need to retrieve them separately: <apex:remoteObjects > ...
sfdcfox's user avatar
  • 495k
2 votes
Accepted

Updating Custom Setting Using RemoteObject in Visualforce pages

You forgot to include the record Id. Without a record Id you can't perform an update. Depending on your custom setting, the following should probably work: (new RemoteObjectModel.Config__c())....
sfdcfox's user avatar
  • 495k
1 vote
Accepted

Why isn't the remote object model creating a record?

The record is being created, but your callback is in the wrong spot. const data = { FirstName: "Clark", LastName: "Kent", }; console.log({ data }); const contact = new ...
sfdcfox's user avatar
  • 495k
1 vote
Accepted

Is there a way to define the sforce.Sobject's field using a javascript variable? (ajax toolkit in visualforce)

Sure - account[someCustomField] = "abcdefg"
eaeaoo's user avatar
  • 928
1 vote
Accepted

Javascript remote object skipping a decimal when this is 0

0.8 == 0.80. They both mean "80 cents". In your JavaScript, use the Number#toFixed method: var myCurrency = sourceValue.toFixed(2);
sfdcfox's user avatar
  • 495k
1 vote
Accepted

Creating records using Remote objects

Creation of multiple records is not possible for create Call currently and the only alternative is to go for Javascript Remoting instead of the Visualforce Remote Objects . The downside of using JSR ...
Mohith Shrivastava's user avatar
1 vote
Accepted

How to href within JQuery field for RemoteObjects

See this stackoverflow post to add hyperlink. You can use render function with columnDefs to override the display type: Here is what I use in dataTable's option: "columnDefs": [{ "targets": 1, ...
Raul's user avatar
  • 18.8k
1 vote
Accepted

Remote Objects are returning improperly formatted text

You'll have to decode the values; they're encoded for your protection. That would probably look like this: var textarea = document.createElement('textarea'); textarea.innerHTML = model.get('Name'); ...
sfdcfox's user avatar
  • 495k
1 vote

How to define lookup field in Remote Object for Opportunity Product - Product2?

Product2 is a readonly field, not an insertable field on OpportunityLineItems. You can use lookupfields, the previous comment is incorrect, I have done it. You just have to use pricebookentryid, not ...
disasterlooms's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible