Questions tagged [remote-objects]

Visualforce Remote Objects are proxy objects that enable basic DML operations on sObjects directly from JavaScript. Remote Objects remove some of the complexity from JavaScript remoting by reducing the need for @RemoteAction methods in an Apex controller or extension.

Filter by
Sorted by
Tagged with
1 vote
0 answers
834 views

Visualforce Remote Objects - Context incomplete - authorization not provided

I am using Visualforce Remote objects for a simple query to get a value from a custom object in Guest-user context inside the community and also same thing happens if run the vf page using "/apex/...
Mahmood's user avatar
  • 5,874
1 vote
1 answer
139 views

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

As shown in the code comments below I want to use the variable "someCustomField" in the account.someCustomField statement but the error message tells me "someCustomField" doesnt exist despite its ...
Peter Noges's user avatar
  • 1,090
4 votes
0 answers
155 views

How to set the criteria parameter in the retrieve method for RemoteObjectController?

My question is: How do set the criteria like 'where' and 'orderby' (in the java script below) in the retrieve method for RemoteObjectController? RemoteObjectController Use RemoteObjectController ...
paul.liu's user avatar
0 votes
1 answer
117 views

Updating datetime field from Visualforce remoteObjects

I m trying to update a datetime field from VF page using remoteObjets and I am getting this error: err: Error: Last Viewed Timestamp: value not of required type: 2019-11-20T11:00:56.373Z This ...
Dedo's user avatar
  • 4,981
2 votes
2 answers
93 views

Visualforce Remote Object Query 'where-like' Condition using a List of String

Is it possible to query a 'where like' list of string with remote object? That is possible in Apex soql: Set<String> LikeNameSet= new set<String>(); LikeNameSet.add('%test1%'); ...
Leon's user avatar
  • 21
0 votes
1 answer
35 views

Javascript remote object skipping a decimal when this is 0

I am using remote object to bring some values into a VF page, basically the user as it types it calculates and update the opportunity, so the remote is "constantly" updating the page. Then I have a ...
manza's user avatar
  • 1,945
2 votes
2 answers
2k views

Jquery AutoComplete in Visualforce Page

Autocomplete feature is working great but when there are two Contact blocks and when I try to search for contact then it updates both Contact blocks.How do I make sure it updates only the block that I ...
sfdc's user avatar
  • 13.6k
4 votes
1 answer
158 views

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

Is it possible to include these fields Id,Name,Description__c in a Remote Objects definition within a Visualforce Page without hardcoding them? I would like to pass them from elsewhere and am ...
Peter Noges's user avatar
  • 1,090
1 vote
1 answer
308 views

Using Remote Objects in JavaScript to query parent Object field

I am using remoting on VF page. Here is the code snippet. <apex:remoteObjects > <apex:remoteObjectModel jsShortHand="sfNode" name="SBQQ__QuoteLine__c" fields="Id,Name,SBQQ__Quote__c,...
user2815826's user avatar
2 votes
0 answers
602 views

How to dynamically query in Remote Object Model?

See my code comments in my controller for what I'm trying to do. This article might help as well: Overriding Default Remote Objects Operations Page <apex:page> <apex:remoteObjects &...
Peter Noges's user avatar
  • 1,090
0 votes
1 answer
488 views

Client side Typescript library for communicating with salesforce

Just wondering if anyone has added typings for any of the client side javascript libraries out there? If not, is forcetk still the latest and greatest solution (will be using primarily for VF pages)? ...
NSjonas's user avatar
  • 10k
0 votes
1 answer
57 views

Remote Object not inserting

Try to test remote objects in visualforce from a prechat form. Get a status :POST 200 but the record does not actually get inserted. <!-- Remote Objects definition to set accessible sObjects and ...
Allen Mann's user avatar
  • 1,092
1 vote
0 answers
103 views

Is there a Salesforce method to validate Remote Objects Query Criteria and turn it into dynamic SOQL?

Let's say I'm overriding the default retrieve operation for a Visualforce Remote Object so I can use custom SOQL to execute a query and add related (nested) data. In order to create a query, it'd be ...
jon_wu's user avatar
  • 777
0 votes
1 answer
187 views

Remote Objects do not work when rendered as PDF?

I want to use Visualforce remote object to retrieve data and display it as PDF. I use this code. <apex:remoteObjects jsNamespace="RemoteObjectModel"> <apex:remoteObjectModel name="...
abdn's user avatar
  • 525
1 vote
1 answer
391 views

Updating Custom Setting Using RemoteObject in Visualforce pages

I am trying to update the Custom Setting using remote Object in visualforce page, the scenario is when every time on load of the page I want to update the sessionId in custom setting, but using remote ...
Abhi Tripathi's user avatar
2 votes
0 answers
148 views

Query retrieval error in remote objects

I have a remote object on a custom object 'Cars__c'. <apex:page > <apex:remoteObjects > <apex:remoteObjectModel name="Car__c" jsShorthand="Cars" fields="Name, Id"> ...
Franktrt's user avatar
  • 173
2 votes
1 answer
162 views

remote object AND condition

I've tried using an AND condition in my remote object. I keep getting an error. Here is what I have based on a help article. It works when there is only a single condition. Once I add two it doesn't ...
Tyler Zika's user avatar
  • 2,808
10 votes
2 answers
1k views

What is the major benefit of using Remote Objects

I have gone through some examples of using Remote Objects: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_remote_objects.htm I haven't used it in my daily projects. My ...
Lance Shi's user avatar
  • 12.9k
3 votes
1 answer
368 views

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

I am getting this weird error, when using remote object and I am not sure what is going on: this field exist in my salesforce object I am successfully retrieving several fields, but when I add this ...
manza's user avatar
  • 1,945
0 votes
1 answer
112 views

Catch all invokeAction requests in JavaScript

I use Angular.js and this github.com example to invoke remote action Visualforce.remoting.Manager.invokeAction.apply( Visualforce.remoting.Manager, args); I need to 'hook' all this SF ...
JDoE's user avatar
  • 61
0 votes
0 answers
150 views

Is there a Backbone.js library that works with VisualForce Remote Objects instead of REST?

I've seen Backbone.Force and force.entity.js and both use ForceTK. However, it looks like ForceTK just uses the REST API. Is there a similar library that transparently integrates Backbone.js with ...
jon_wu's user avatar
  • 777
0 votes
2 answers
75 views

How to href within JQuery field for RemoteObjects

Morning Everyone, I was wanting some help in hyperlinking the Name field in the following code. I've tried a few methods within the brackets to no avail and keep breaking the entire page. I'm ...
Louis HM's user avatar
1 vote
3 answers
246 views

Remote Objects are returning improperly formatted text

In the console.. This is the code I use to convert the sent remote object data to be properly formatted. var AccountEntity = function() { } AccountEntity.fromRemoteObjectModel = function(model) { ...
Tyler Zika's user avatar
  • 2,808
0 votes
1 answer
259 views

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

I am using Remote Object for Opportunity Product.I want to read Product2.Name but not able to define Product2 field in remoteobject type while it is standard field.My objective is to read Product2....
unidha's user avatar
  • 2,532
1 vote
1 answer
499 views

Error in retrieving remote objects

You can copy and paste my code easily into your dev console to debug this. I'm trying to get a list of users from a remote object query. After typing a value in the input box, click outside the box ...
Tyler Zika's user avatar
  • 2,808
0 votes
0 answers
359 views

id Lead must be 15 characters

I'm updating a lead record using remote objects in visualforce page, and to update the record i'm overriding the default update action with my custom controller method. when i do that browser alerts/...
naruto-sfdc's user avatar
0 votes
1 answer
99 views

Unknown Property Error when using remoteObjectModel

I am trying to create a VisualForce page which uses remoteObjects in order to add a global quick action to Service Cloud. I want to create a tab in service cloud which has a button called create ...
Johan de Wild's user avatar
0 votes
1 answer
201 views

Is it secure to use apex:remoteObjects to update objects via JS?

I have some concerns about security when using remoteObjects <apex:remoteObject> <apex:remoteObjectModel name="Lead" fields="Id,FirstName"/> </apex:remoteObjects> lead.retrieve(...
Artur's user avatar
  • 33
1 vote
2 answers
508 views

Creating records using Remote objects

Can we create multiple records at a time using remote object create() call? If yes what is the syntax? I tried passing a list of objects to create call but it didn't work.
ajinkyah's user avatar
  • 749
0 votes
1 answer
42 views

Call abort() on a Remote Object call

Currently I am calling the .retrieve() method on a keypress for a typeahead functionality. I have faked the code so that when user pauses typing I then fire the call using setTimeout, but the issue ...
Joy Biswas's user avatar
2 votes
1 answer
1k views

How to pass nested collection within JavaScript remoting

I'm trying to pass collection to overrided SObjectModel update function. If I pass primitives, I can get them in APEX. But if I pass nested collection, I got Unhandled Exception: FATAL_ERROR ...
Joy Biswas's user avatar
0 votes
1 answer
93 views

Receiving error using del() operation with Visualforce Remote Objects

Error occurred while performing DELETE operation on sobject: TopicAssignment with data: [record_id] (MALFORMED_QUERY: Implementation restriction: TopicAssignment only allows security evaluation for ...
Jen McCarthy's user avatar
2 votes
1 answer
190 views

Get case statuses using remote object model

I have some case statuses which belong to a certain process (process A) and others which belong to a different process, (process B). All of which are case processes. How can I use remote object to ...
eyal83's user avatar
  • 262
1 vote
1 answer
268 views

Remote Object Query Filter Criteria for Cross-Object Formula

So I am working to create a VF page that pulls a list of records from a custom object (Individual_Account__c) and I am also trying to filter this list of records based on a cross-object formula field (...
Ryan Bowen's user avatar
0 votes
1 answer
114 views

calling PriceBookEntry from Javascript

After reading tons of links, posts and many documents, I decided to ask for help here, hopping some guru can help me with this issue: <!-- Visualforce Remote object component for Products --> &...
Yelmox's user avatar
  • 23
3 votes
2 answers
871 views

Remote Objects: Insert an array of objects

Is it possible to insert an array of objects using Remote Object Model? Here's my code: <apex:remoteObjects jsNamespace="romodel"> <apex:remoteObjectModel name="Stock__c" jsShorthand="...
Arthlete's user avatar
  • 4,793
1 vote
1 answer
2k views

Can anyone tell me how to display Table form using angularJS ng-Table and visualforce remote objects in visualforce page using AngularJs?

I have created the Visualforce for this use case. . I get work order details in table form, but paging and filtering in not working. My code as follows <div ng-controller="searchWOController">...
Ejaz's user avatar
  • 341
3 votes
2 answers
1k views

Retrieve Picklist values when using Visualforce Remote Objects

Is there a way to get all Pick list values for a custom field / object using Remote Objects? I have looked at the docs, tried querying the fields but not sure how I can do this. Any guidance or ...
DevIntern's user avatar
  • 197
3 votes
1 answer
420 views

How to get CreatedBy SmallPhotoURL in remoteObjects?

I have a custom object (Incident__c) and I want to retrieve the object's creator's SmallPhotoURL using remoteObjects. I know that I need to make a formula for it, however I can't figure out what is ...
eyal83's user avatar
  • 262
1 vote
1 answer
394 views

How to get objects in RemoteObjectModel

I have a VisualForce page and I am using the apex:remoteObjects component. I am retrieving a custom object called Incident__c. My code is: <apex:remoteObjects jsNamespace="RemoteObjectModel"&...
eyal83's user avatar
  • 262
1 vote
1 answer
150 views

Remote Object Query not respecting multiple criteria on single field

I'm trying to utilize Remote Objects in order to query a Custom Object. Part of my criteria involves getting all records during a particular date range off of a single field. { where: { ...
dBeltowski's user avatar
  • 3,038
1 vote
0 answers
31 views

Remote Objects duplicated on creation

I'm having issues with the creation of new records using remote objects: when I use the remote object create function instead of having only one record created I'm having two records, so the record is ...
Emile Bled's user avatar
2 votes
1 answer
2k views

Inserting Date Field with JS Remote Objects

Using JS Remote Objects, I'm trying to INSERT a record that has a date field as a required field (an Opportunity). I am getting this value from a user input, which I'm using JQuery.validate to ...
ZAR's user avatar
  • 2,003
2 votes
1 answer
110 views

remoteObjectModel with Angular: Transform get() to dot notation

I have defined an <apex:remoteObjectModel> in my .page file and can access custom objects through new SObjectModel.ObjectName().retrieve(). However, the fields in these objects are accessed as ...
Simon Fischer's user avatar
2 votes
1 answer
361 views

Remote Objects and Master-Detail - Can't create child records

I have a Master Object A... ...And a Child Object B with a Master-Detail field A__c pointing to A... ...I'm trying to create a B record, child of a pre-existent record A using Remote Objects... ......
MLucci's user avatar
  • 1,098
7 votes
1 answer
639 views

Dynamically get required fields with JS Remote Objects

I'm designing a VF SPA that uses remote objects. Much of the page is dynamic, and I use user input to define which sObjects I look up. I wanted to know how, given a user input for a sObj, I can return ...
ZAR's user avatar
  • 2,003
3 votes
2 answers
620 views

Pulling records by parent ID with visualforce SLDS remote objects

I'm trying to pull fields in my custom object by matching it with the parent Id in Visualforce with the new Lightning design. I've done it with Apex but am a little confused with remote objects. I ...
Andrew's user avatar
  • 173
4 votes
1 answer
232 views

Visualforce Remote Objects Related List Query

Does anyone know how to or if it is possible to pull data from the related list of an object using Remote Objects? I can query the object's related list without error however it is undefined and I ...
binaryLady's user avatar
4 votes
1 answer
679 views

Remote Objects Query Criteria Where Condition "in"

I have an array list that takes many ids. I am trying to get records with remote objects according to array list. I am using 'in' condition for this scenario and ı am getting an error that is "Invalid ...
berkay ozkan's user avatar
1 vote
1 answer
218 views

Is it possible to pull fields across multiple objects using Remote Objects?

Perhaps I am missing something, but I cannot seem to find an example showing where someone has pulled data via Remote Objects across several custom objects. In this particular use case, I am ...
toolshed's user avatar
  • 815