force.com

Remote host closed connection during handshake with Nest API

£可爱£侵袭症+ 提交于 2020-01-06 15:33:12
问题 Trying out the Nest API, I got the OAuth flow working without problems, made the first API call (to https://developer-api.nest.com/devices.json ), got the 307 redirect as expected, but then my call to the redirect location fails with Remote host closed connection during handshake . I went to the Nest developer event in San Francisco last night, and Lev Stesin told me to post a full log here and mention his name. Code (Apex, running on Force.com): public with sharing virtual class

How to implement “Save & New” functionality in a VisualForce Page

我与影子孤独终老i 提交于 2019-12-30 10:14:06
问题 I know that this is how to save a record <apex:commandButton action="{!save}" value="Save"/> Now I want a button to save the current record and reset the form to input another record. Something like this... <apex:commandButton action="{!SaveAndNew}" value="Save & New"/> 回答1: The URL for the new record page is the {org URL}/{3 letter object prefix}/e?". You could define your save method as follows, where m_sc is a reference to the standardController passed to your extension in it's constructor

Is there any option to connect other db in the salesforce platform? [closed]

只愿长相守 提交于 2019-12-25 08:23:26
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I would like to know whether there any option to connect to the external db in the salesforce platform. Thanks, Easwar 回答1: You cannot use an external database for your Salesforce data, if that's what you're

How to implement “Cancel” functionality in a VisualForce Page

坚强是说给别人听的谎言 提交于 2019-12-21 12:03:50
问题 I know that this is how to save a record <apex:commandButton action="{!save}" value="Save"/> I want a button to NOT save the current record (ie. Cancel) and navigate to the list of saved record (ie. list of objects for that object type). Something like this... <apex:commandButton action="{!cancel}" value="Cancel"/> 回答1: The list view for an object is your base URL / the 3 letter prefix for your object / o, for example: https://na1.salesforce.com/a0C/o So you could just create an action method

Failed to create the part's controls in Eclipse with Salesforce

余生长醉 提交于 2019-12-18 13:33:51
问题 I have Eclipse Juno and Force.com IDE. When I try to create new classes they always show: failed to create the part's controls . It worked for the first time, but now they always show this. Same happens if I create them inside the force.com platform. Error details: org.eclipse.core.runtime.AssertionFailedException: assertion failed: at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110) etc ... I would appreciate all help. 回答1: I had the same error. I fixed it by switching the eclipse

POST json with Rest APi using webReuest from WP7

拥有回忆 提交于 2019-12-14 03:10:19
问题 I am updating the db table on force.com using Rest API. And i am posting json data to update db table like this. // preparing webrequest HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri); // adding request headers request.ContentType = "application/json"; request.Headers["Authorization"] = "OAuth " + token; request.Headers["X-PrettyPrint"] = "1"; // request method request.Method = "PATCH"; // start the asynchronous operation request.BeginGetRequestStream(new AsyncCallback

Automated upload of a Salesforce file to Box.com record-linked folder

杀马特。学长 韩版系。学妹 提交于 2019-12-13 12:42:35
问题 I have a Box for Salesforce intregration app installed and it works great when a user manually adds a file to a SFDC record. I have an Apex class that creates a PDF file that needs to be linked to a SFDC record. I am able to upload the record through the box-api to an existing folder that is linked to the record. But I cannot figure out an automated way to create a folder that is linked to a SFDC record. Did anyone find a solution to this scenario? Thanks, Jose 回答1: We don't currently have a

Apex Class Controller Random Contact Records

删除回忆录丶 提交于 2019-12-12 02:53:21
问题 I am looking on selecting a small group of random contacts from a specific view. The records are in that view if their campaign status is set to sent. I have created an apex class that I think would work, however I am trying make this class a controller and build a visual force page. I am knew to salesforce and apex. After doing some research i think i will have to use getters and setters to call the information. My apex class is public class MyController { Integer count = [SELECT COUNT()

EXCEEDED_ID_LIMIT: emptyRecycleBin id limit reached: 200

只谈情不闲聊 提交于 2019-12-11 17:14:53
问题 I'm just wondering if anyone else has seen this and if so, can you confirm that this is correct? The documentation claims, as you might expect, that 10,000 is the record limit for the system call: Database.emptyRecycleBin(records); not 200. Yet it's throwing an error at 200. The only thing I can think of is that this call occurs from within a batch Apex process. 回答1: This is the only reference that I could find to there being a limit of 200 on emptyrecyclebin(), I dare say that you are

How to create an alert to notify an user when some amount % of threshold reached DailyAsyncApex Executions

孤者浪人 提交于 2019-12-11 17:01:21
问题 On 2 occasions in the past month, we have managed to hit our daily limit on asynchronous apex executions. Salesforce temporarily increased our limit to 425000 but it will be scaled down to 250000 in a week's time. Once we reach the limit, a lot of the SF functions will fail and this has tremendously impacted both internal staff and external customers. So to prevent this from happening in the future, we need to create some kind of alert in Salesforce to monitor our daily asynchronous apex