Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
0answers
20 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
23 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
27 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
16 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....
1
vote
1answer
56 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
0answers
118 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 ...
3
votes
2answers
165 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 ...
0
votes
0answers
27 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 ...
-2
votes
2answers
142 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 <...
1
vote
0answers
620 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
1answer
336 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 ...
0
votes
1answer
85 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 = '" + ...
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 ...
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
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 (...
5
votes
1answer
910 views

What is the difference between JSFORCE and SFORCE?

What is the difference between JSFORCE and SFORCE?
5
votes
1answer
398 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 ...
0
votes
2answers
518 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 ?
2
votes
1answer
417 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 ...
0
votes
1answer
161 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 ...
1
vote
2answers
506 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 ...
0
votes
1answer
134 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 ...
1
vote
1answer
837 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 ...
0
votes
0answers
17 views

Phone number link in Salesforce page looks for another app [duplicate]

I have developed a Salesforce call center using Open CTI. In Firefox and Chrome, when I click a contact's phone number in the SF page, the sforce.interaction code sends the number to my code and my ...
1
vote
0answers
781 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() ...
3
votes
1answer
1k 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 ...