salesforce

Python Salesforce API Authentication

左心房为你撑大大i 提交于 2021-01-29 09:14:22
问题 I am trying to automate creating tickets in Salesforce. For this, I am using API with Python. I have got the Client ID and Client secret for my registered python Application. I have read many questions and as per the security purpose, I do not want to use the "user-password" flow for my script. Is there any way that I can only use "CLIENT ID" and "CLIENT SECRET" to get the access token where I can pass this access token in bearer header for other calls import requests params = { "grant_type":

How to create Salesforce incremental package.xml automatically?

不问归期 提交于 2021-01-29 08:05:22
问题 Does anyone experiment in creating salesforce Package.xml automatically for continuous integration? If there any script or some idea please share. You know incremental package.xml helps to deploy only the modified files rather than using complete package.xml that redeploy unmodified files as well which takes a lot of time. Thanks in advance! 回答1: Tricky. And not really a programming-related problem, consider cross-posting this to https://salesforce.stackexchange.com/ or maybe even https:/

Unable to fetch complete records from Salesforce using Python

安稳与你 提交于 2021-01-29 07:54:41
问题 I am trying to fetch the data from salesforce using the simple_salesforce library in python. I am able to get the correct count of records while running the count query. But while I am trying to put that results (in the form of list) into s3 as a JSON object, not as many reocrds are getting persisted as I captured from Salesforce. Here is the piece of code: result = sf.query("SELECT ID FROM Opportunity")['records'] object.put(Body=(bytes(json.dumps(result, indent=2).encode('UTF-8')))) Is the

Why can't I iterate through a list of a Wrapper class in Salesforce Visualforce?

拜拜、爱过 提交于 2021-01-29 07:27:21
问题 I am trying to iterate through a list of records inside a wrapper class and show them on a Visualforce page. The custom object is called Campaign_Products__c, and the wrapper class is meant to show if the product has been selected by the user to add to a "cart". Apex Controller code (extraneous bits removed): public with sharing class CONTROLLER_Store { ... public List<productOption> cpList { get; set; } public class productOption { public Campaign_Product__c product; public Boolean inCart;

Saleforce retrieving fields from two different objects - (SOQL) Simple Salesforce Python

泪湿孤枕 提交于 2021-01-29 06:51:00
问题 I am using simpleSalesforce library for python to query SalesForce. I am looking at two different object in SalesForce: Account and Backend (parent-child). The Id in account matches the records of Backend through acc_id I am trying to do this: sf.query_all("SELECT AccEmail__c, (select custid from Backend__c) from Account where Id in (select acc_id from Backend__c where custid LIKE '%CUST%')") But I get the response showing: Malformed request - didn't understand the relationship - in FROM part

Azure AD User auto provision in Salesforce

好久不见. 提交于 2021-01-29 05:40:44
问题 I have one Salesforce profile and one permission set in Salesforce. As per the requirement, there are two user personas in our Salesforce application. Persona 1 -> SF Profile Persona 2 -> SF Profile + Permission Set To achieve the above configuration using Azure AD auto-provision, we have created two security groups and added relevant business users into those two groups. Currently, we struggling to determine the best approach on how to assign the Salesforce permission sets to the users in

How to handle an offset greater than 2000 on SOQL without sorting by ID or date using the Salesforce Rest API

百般思念 提交于 2021-01-29 05:11:21
问题 Right now I'm working on migrating a site from using an oracle database to use salesforce. For querying the data we are using the latest version of the salesforce rest API. Right now I'm facing a problem paginating results with an offset greater than 2000. I have seen quite a few questions on this topic but none of them seem to fit my problem. So Here are the restrictions I need to fetch the results on chunks of 20 records (that is the page size). I can't just get a bunch of results and then

soql select individual CaseComment with all its FeedComments

假如想象 提交于 2021-01-28 17:49:47
问题 I am trying to select all comments ,feeds and feedcomments for an individual case. The hierarchy is like Case | CaseComment | FeedComments(commnets or feeds under a CaseComment) I could not find any relation between CaseComments and FeedComments nor CaseComments and CaseFeeds . How can I select all together in a soql or individual soqls which relates Case, CaseComment,CaseFeed,FeedComment ? 回答1: EDIT The query you've included in the comment looks good. I'd write it as something like that:

Talend parse Date “yyyy-MM-dd'T'HH:mm:ss'.000Z'”

*爱你&永不变心* 提交于 2021-01-28 05:09:08
问题 I have an error parsing a date in Talend. My input is an excel file as String and my output is a Date with the following Salesforce format "yyyy-MM-dd'T'HH:mm:ss'.000Z'" I have a tMap with this connection TalendDate.parseDate("yyyy-MM-dd'T'HH:mm:ss'.000Z'",Row1.firstDate) but is throwing the following error: java.lang.RuntimeException: java.text.ParseException: Unparseable date: "2008-05-11T12:02:46.000+0000" at routines.TalendDate.parseDate(TalendDate.java:895) Any help? Thanks 回答1: In

Bad Request when using Google OAuth2.0

狂风中的少年 提交于 2021-01-27 06:32:10
问题 I am receiving a 400 bad request when using Google OAuth from within Salesforce. The following error is in regards to invalid grant_type, but if you look at the documentation under 'Using Refresh Token' you will see that it is correct. https://developers.google.com/identity/protocols/OAuth2WebServer Error: { "error": "unsupported_grant_type", "error_description": "Invalid grant_type: " } I am attempting to exchange a refresh_token for an access token and can successfully do it using CURL,