Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [sforce]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
462 views

How to call Toast msg from LWC to Visualforce page (Toast message in VF page)

I have been searching for Toast Message on the VF page. Because I have called my LWC inside one Vf page. it is working fine but the Toast message is not accessible or we can say visible on the VF page....
Sen Ashok's user avatar
1 vote
0 answers
135 views

How to refresh VF page after creating or editing the record using sforce.one?

I'm new to salesforce, I have created a VF page for creating and editing a record using sforce.one Below is my syntax: if ( typeof (id) == 'string' && taskassignfieldresp.keyPrefix == id....
Kruteeka ms's user avatar
0 votes
1 answer
218 views

urlencoding is not working and redirecting to new record in lightning

In apex class via soql getting record id owner name but it is not redirecting in lightning to new record page and prepopulate values. urlString = '/lightning/o/AssetRegular__c/new/?...
cloudZigZag's user avatar
  • 1,366
0 votes
1 answer
144 views

Is there a way to determine if com.sforce.async.BulkConnection is thread-safe?

Is there a way to determine if com.sforce.async.BulkConnection is thread-safe? I'm unable to find any documentation regarding thread safety of the connection objects. So help to determine thread ...
Sachin DG's user avatar
3 votes
2 answers
986 views

Not able to use LMS in VF page iframe in Aura Component

I want to use LMS to publish data from the VF page and receive it in Aura Component. I have an Aura Component and am trying to iframe a Visualforce page in it. <aura:component> <iframe src='/...
Krishna Teja Karnam's user avatar
2 votes
0 answers
921 views

Lightning Message service error in visualforce page - Cannot read property 'subscribe' of undefined

Was anybody able to work with sforce.one.subscribe for subscribing to lightning message service in visualforce? I keep getting below error: Even after including sforce and ajax js files, sforce.one ...
salesforce-sas's user avatar
0 votes
0 answers
602 views

Getting '{success: false, errorMessage: "Error: Invalid request."}' when calling sforce.console.getPrimaryTabIds()

We have a Visualforce console component. At some point, we want to get info about all the open Console tabs. So we call sforce.console.getPrimaryTabIds(function(result) { console.log(result); }); ...
Willem Mulder's user avatar
0 votes
1 answer
448 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 ...
sami ullah's user avatar
0 votes
1 answer
313 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 ...
Nagendra K S's user avatar
1 vote
1 answer
512 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 ...
Abhik Dey's user avatar
  • 357
0 votes
0 answers
587 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 ...
Uwe Heim's user avatar
  • 28.4k
2 votes
2 answers
1k 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 ...
Uwe Heim's user avatar
  • 28.4k
0 votes
0 answers
61 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 ...
Kamal Thakur's user avatar
-1 votes
2 answers
2k 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 <...
ApexCode's user avatar
1 vote
0 answers
2k 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 ...
Tim Weiß's user avatar
1 vote
1 answer
852 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 ...
sf dev's user avatar
  • 98
0 votes
1 answer
240 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 = '" + ...
Ajay 's user avatar
  • 1,589
4 votes
4 answers
3k 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 ...
Tate's user avatar
  • 41
2 votes
2 answers
2k 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 (...
Olivia's user avatar
  • 3,461
5 votes
1 answer
2k views

What is the difference between JSFORCE and SFORCE?

What is the difference between JSFORCE and SFORCE?
Sathish's user avatar
  • 125
6 votes
1 answer
1k 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 ...
Philip F's user avatar
  • 343
0 votes
2 answers
791 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 ?
Sagar Thoriya's user avatar
2 votes
1 answer
1k 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 ...
karthikselva's user avatar
  • 2,476
0 votes
1 answer
300 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 ...
NoNicknameSFDC's user avatar
0 votes
1 answer
294 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 ...
McD's user avatar
  • 1,266
1 vote
1 answer
2k 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 ...
tjcinnamon's user avatar
  • 1,620
1 vote
0 answers
1k 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() ...
Sagar Thoriya's user avatar
3 votes
1 answer
3k 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 ...
Louis Pujol's user avatar
  • 1,235