salesforce

Google reCaptcha: Unable to validate in time

南笙酒味 提交于 2020-07-22 06:04:05
问题 REQ_PARAM_NAME::validated-captcha REQ_PARAM_VALUE::Pair(false,Unable to validate in time. Response is assumed correct. 101781) Why do I get this message from google? The v2 reCaptcha checkbox is checked before submitting the form, but the server validation returns the above result and is rejected (Salesforce form rejects it). ** EDIT ** The website is a wordpress site. Here is the code I needed to add in the header: <script src="https://www.google.com/recaptcha/api.js"></script> <script>

I sheduled an apex class to run everyday, but nothing happens. Can somebody help me out?

帅比萌擦擦* 提交于 2020-07-09 05:13:56
问题 I wrote this APEX class and sheduled it to run every day.I don't get an error message, but unfortunately the class doesn't do anything... Can anybody help me out? global class CustomersDateCheck implements Schedulable { global void execute(SchedulableContext sc) { List<Customers__c> CustomerList = [SELECT Id FROM Customers__c]; DateCheck(CustomerList);} public static void DateCheck(Customers__c[] objects){ for(Customers__c obj: objects){ if(obj.DateField > Date.today()){ continue;} else{obj

Saleforce plug-in error in google cloud data fusion

与世无争的帅哥 提交于 2020-06-27 22:56:26
问题 I'm testing salesforce connectivity from Google Cloud Data Fusion. I get this error "Error: No discoverable found for request POST /v3/namespaces/system/apps/pipeline/services/studio/methods/v1/contexts/default/validations/stage HTTP/1.1" when clicking on the get schema button in the connector. Authentication details are all correct, I have tested it outside using Postman. 回答1: Can you go to the System Admin link at the top right hand corner and check the status for Pipeline Studio? If it's

Saleforce plug-in error in google cloud data fusion

孤街醉人 提交于 2020-06-27 22:56:11
问题 I'm testing salesforce connectivity from Google Cloud Data Fusion. I get this error "Error: No discoverable found for request POST /v3/namespaces/system/apps/pipeline/services/studio/methods/v1/contexts/default/validations/stage HTTP/1.1" when clicking on the get schema button in the connector. Authentication details are all correct, I have tested it outside using Postman. 回答1: Can you go to the System Admin link at the top right hand corner and check the status for Pipeline Studio? If it's

Q: Simple-Salesforce make a dynamic soql query

雨燕双飞 提交于 2020-06-23 03:57:14
问题 Was trying to figure out a way to get simple salesforce to just give me all the field names in a list. I want to create soql query that pretty much does the same thing as a Select * does in sql. for obj in objects: fields = [x["name"] for x in sf[obj].describe()["fields"]] thanks 回答1: A list of field names in an object can be achieved as follow: def getObjectFields(obj): fields = getattr(sf,obj).describe()['fields'] flist = [i['name'] for i in fields] return flist getObjectFields('Contact')

Q: Simple-Salesforce make a dynamic soql query

送分小仙女□ 提交于 2020-06-23 03:55:29
问题 Was trying to figure out a way to get simple salesforce to just give me all the field names in a list. I want to create soql query that pretty much does the same thing as a Select * does in sql. for obj in objects: fields = [x["name"] for x in sf[obj].describe()["fields"]] thanks 回答1: A list of field names in an object can be achieved as follow: def getObjectFields(obj): fields = getattr(sf,obj).describe()['fields'] flist = [i['name'] for i in fields] return flist getObjectFields('Contact')

Salesforce OAuth authentication doesnt work with username and password

吃可爱长大的小学妹 提交于 2020-06-18 11:20:14
问题 I created a new connected app in salesforce I am trying to authenticate using username and password - OAuth method to fetch a token using Postman I am hitting the following endpoint https://login.salesforce.com/services/oauth2/token with my client_id, client_secret, username and password I am getting the following error: { "error": "invalid_grant", "error_description": "authentication failure" } The username and password are verified to be correct independently What am I missing here? 回答1: If

Configure Azure AD B2C as Auth Provider in Salesforce

前提是你 提交于 2020-06-01 07:27:06
问题 I am trying to configure Azure AD B2C as auth provider to Salesforce. I followed the instructions in http://salesforce.vidyard.com/watch/kcgTXQytUb6INIs2g3faKg (instead of google used Azure AD B2C). When I click on the test-only initialization URL I get the following error My B2C set up is very basic. I just have an email provider and an out-of-the-box sign-in sign-up policy. Any help will be greatly appreciated. 回答1: I'm late to the party but I wanted to post here in case anyone else can use

Get base64 data of file from Salesforce

两盒软妹~` 提交于 2020-05-31 05:42:48
问题 I need to get opportunity files from Salesforce and copy them to some folder. I am using .NET library for connecting to Salesforcre. I can get any data I want, except the [VersionData] field in [ContentVersion] table, which contains base64 data of the files I want. I can get the data with Workbench tool, but the only thing I get via .NET library is a link to file. I could create HttpClient with appropriate headers and invoke that URL, but I don't like to go this ways. Can I get the file via

ObjChildItem.Click() not working properly in a loop

可紊 提交于 2020-05-16 22:01:43
问题 I am using UFT One to test a Salesforce Contacts table with two rows that have clickable links, "Jim Bean" and "Marsha Smith". (see attached image). I want to loop through the rows and click on the links and have "ValidateContactProperties" Action get called for each Contact Details page that comes up. The following code works but ObjChildItem.Click() gets executed only the first time. Only Jim Bean's contact profile page is displayed, not Marsha Smith's. For i = 2 to rowCount Set