Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sforce]

The tag has no usage guidance.

5
votes
1answer
1k views

What is the difference between JSFORCE and SFORCE?

What is the difference between JSFORCE and SFORCE?
5
votes
1answer
458 views

How can we add products to an Opportunity using sforce.one.createRecord()?

Following the documentation on navigation with the sforce.one object, I'm attempting to create Opportunity Products with a link on a Visualforce page that has been added to the page layout and is ...
4
votes
4answers
1k views

How do you use the defaultFieldValues parameter when calling sforce.one.createRecord method?

Wondering how to use the new defaultFieldValues parameter on the sforce.one.createRecord() method to pass in the parent or related records. The defaultFieldValues parameter is a Summer '17 feature ...
3
votes
2answers
308 views

Is it possible to invoke a function after sforce.one.editRecord(recordId) or $A.get('e.force:editRecord') has been saved?

I have a VF Page embedded on a Record-Home Flexipage in LEX. I'm using my own VF-Container-Iframe-LightningComponent to host it, but since using the magic parameter isdtp=p1 I get the platform ...
3
votes
1answer
2k views

Cannot read property 'navigateToSObject' of undefined in Lightning

I am developing a Lightning component that lists related Contacts. I would like to make it so that when you click on the name of a related contact, then it will navigate to that contact's record. Here ...
2
votes
2answers
1k views

openPrimaryTab() not opening more than one tab with a tabLabel - Console

I am unable to open multiple tabs with a tabLabel but CAN open multiple tabs without a tabLabel. I can't find any documentation on why this would be happening or any further explanations on the (...
2
votes
1answer
473 views

Navigate to report with filter parameters in Lightning enabled orgs

Current Implementation: I am tweaking existing VisualForce Page to be compatible with both Single Page Application based Lightning theme and Complete refresh based Classic theme. Note: Since the ...
1
vote
1answer
986 views

Get user id from Javascript

I am looking to get the users record type from a certain permission set. I need to first get the userId and then I have a picklist on the user field which can be used to communicate with a crosswalk ...
1
vote
1answer
121 views

No recordtype selection on sforce.one.createRecord

I am trying to create a new Object record from a VF page and using the code: function newContractClick() { sforce.one.createRecord('Contract',null); } On this code, it is ...
1
vote
1answer
390 views

Can we create Lightning component using sforce connection

I have to create lightning component on click of a button. This should happen in run time. I tried to SForce connection for the same. But I have to create first AuraDefinitionBundle, then ...
1
vote
0answers
191 views

Is it possible to prevent sforce.one.createRecord() and $A.get(“e.force:createRecord”) from navigating to the new record?

Is this a duplicate? This is not an duplicate of Lightning force:createRecord capture redirect after save because I'm additionally looking for a solution primarily for VF an not only LC. I can't ...
1
vote
0answers
737 views

“sforce.one.navigateToURL” does not navigate to Lightning Component

I have got a special problem using the "sforce.one.navigateToURL" command in a visualforce page. I am using the following code snippet to redirect a user from a visualforce Page to a Lightning ...
1
vote
2answers
536 views

jquery sortable saveChanges by press button

I need to create a page that list Accounts with a field name Level (level__c) with 3 options (level1, level2 and level3). The lists let you perform drag and drop that can change the account to another ...
1
vote
0answers
854 views

Sforce.one.back(true) Not working with PageReference, It was working before summer 16 update

We have number of vf page there we have method in apex class to navigate, Now we are moving to support our app for lightning experience. so we have updated the number of pages with sforce.one.back() ...
0
votes
2answers
573 views

Is there any way to populate record field value using sforce.one.createRecord('Contact');?

I am using sforce.one.createRecord('Contact') to create contact record and here i want auto populate some field including look up. is it possible ?
0
votes
1answer
125 views

sforce.connection.query AccountId is Undefined

I am getting AccountId as "Undefined" for some reason in sforce.connection.query. try{ var cons = sforce.connection.query("SELECT Id,Name,Accountid,Account.Name FROM Contact WHERE Id = '" + ...
0
votes
1answer
156 views

Sforce Query Returns only Id and Type

I'm trying to make a custom link that executes some JavaScript in order to look up an Account, but running into an issue. I expect to get the entire Account back, but I'm only getting an sforce.Xml ...
0
votes
1answer
183 views

Size limit on sforce.connection.remoteFunction?

I am using Ajax Toolkit function sforce.connection.remoteFunction. What are the limitations of this method? For example if I send an encoded Blob content as a request, is there any limitation on the ...
0
votes
0answers
34 views

How to open native app(Barcode Scanner) using visualforce page in salesforce 1

I am working on a Salesforce 1 mobile app. I have a business requirement to open external App (Barcodescanner) in SF1 app. I have tried below methods. * sforce.one.navigateToURL(); * window.open(); ...
0
votes
0answers
26 views

Inconsistent behavior of console integration toolkit methods in lightning and classic consoles

I have three VF pages: TabulisedPage,OverridingPage and FinalPage. VF page :TabulisedPage <apex:page > <apex:includeScript value="/support/console/42.0/integration.js"/> <A HREF=...
0
votes
1answer
52 views

how Get returnValue from runApex() open cti

in callBack function of runApex(), it reruns JSON...I want to get value from the callback function so that I could perform my logic but I am unable to do so because not having the exact value but a ...
0
votes
1answer
33 views

Can we blink a primary tab after opening it via any css or js?

I am trying to open a primary via this: sforce.console.openPrimaryTab(null, '/lightning/n/***', true, 'TestSearch', openSuccess, 'salesforceTab'); Now if I pass false, the tab opens and does not ...
0
votes
0answers
56 views

sforce.console fails when called from standard button override

I use this code to closeTab from Visualforce in Lightning Experience: function closeFocusedTab() { logToBrowserConsole('Executing closeFocusedTab function'); sforce.console....
0
votes
0answers
31 views

Adding Default Opportunity Team via Javascript Button using SFORCE

To Replicate 'Default Opportunity Member' I created a Javascript Button and below is the Code: {!REQUIRESCRIPT('/soap/ajax/33.0/connection.js')} {!REQUIRESCRIPT('/soap/ajax/33.0/apex.js')} var ...
0
votes
1answer
1k views

{faultcode:'soapenv:Client', faultstring:'No operation available for request

I exported my package in an another org , and when I click on my javascript button (on detail page Contact, using the classic version) I am receiving this error: {faultcode:'soapenv:Client', ...
-2
votes
2answers
322 views

sforce.one is not working properly

I am using below code to open one vf page in classic mode and another page in lightning mode. But every time it is opening classic page only. Why is there any error in my code. Please help me <...