SalesForce - REST API with OAUTH2 Token Auto Refresh Issue
Hi, Is anyone using REST Get snap with Salesforce instance using OAUTH2 account? I am having trouble with keeping my Account tokens up to date. I am able to connect and receive an Access Token and a Refresh Token on my account using the Account “Refresh” button. But SF does not provide me back a “Access token expiration” time. Apparently per SnapLogic support, I cannot enable “auto refresh token” on the account so the token can refresh without an expiration date on the token. I have to manually every hour open my account settings in Snaplogic account and hit “Refresh” to receive a new refresh and access tokens. If not, my snap step returns error “Session expired or invalid”,“errorCode”:“INVALID_SESSION_ID” in all of my pipelines. It’s very frustrating and redundant having to do this multiple times a day. Is there a way to pass thru a expiration token time to the account? Or is there a way I can force a token refresh each time my pipeline runs without my input? My use case is, SF snaps do not give us ability to access rich functionality such as getdeleted() or getupdated() on SF objects. These logs contain hard deleted items per object (when the object is replicated in SF) and we use these logs to keep the data in synch in our DB without having to re-download hundreds of millions of records per object every hour which is not possible. This log data is not accessible through SOQL as far as I can see and they are not in the recycle bin (hence hard deleted) so standard snaps don’t work for this. Example of REST Get service url for hard deleted item logs: https://instance#.salesforce.com/services/data/v39.0/sobjects/AccountTeamMember/deleted/?start=2017-09-13T00:00:00-00:00&end=2017-09-15T00:00:00-00:00 SF documentation: Developer SF REST API - GetDeleted() Another way of getting these results from what I have read is to use REST API QueryAll() functionality in SF. But it uses same Account configuration. Any help of feedback is much appreciated.17KViews0likes14CommentsSalesforce Oauth Redirect URL for Snaplogic
The documentation says you use <SnapLogic_POD_Name> but does not take the time to explain what that is or provide an example; I can guess but would rather not. Kindly confirm what that value should be and/or where one would find it. Thanks.7.7KViews0likes7CommentsSalesforce SOQL - Pass Object Type as Parameter
Hello, Is it possible to pass the “Object Type” into a Salesforce SOQL Snap (or Salesforce lookup or Salesforce Read) I want to dynamically pull data from multiple salesforce objects and pull them into my SQL DB using a lookup table. However, when trying to use a parameter in the “Object Type” field, i get an error, despite the parameter not being null. See attached. ThanksSolved7.6KViews0likes8Comments'is not a valid value for the type xsd:date' Error occurs on pipeline execution
I am currently working on similar 2 pipelines using an integration middleware tool. The first pipeline executes successfully but the second doesn’t and generates an ouput error ‘is not a valid value for the type xsd:date.’ Both pipelines are using the same expression to format the date, Date.parse("2021-03-14 02:40:18.000", "yyyy-MM-dd HH:mm:ss.SSS") , which validates as 2021-03-14T02:40:18.000 UTC What do I need to look for/change?Solved7.2KViews0likes1CommentCount number of records fetched/processed from a flat file/upstream system systems (snowflake, salesforce, oracle)/file writer without using a pipeline execute
Hi Team, I’m looking to count records on a couple of scenarios listed below: (1) Records fetched from a flat file (e.g. excel, csv) and writing the total counts of records into a new column e.g. File Reader --> Mapper (transformation rules here with new column added to count the total number of records) --> Excel/CSV formatter --> File Writer I’ve tried using snap.in.totalCount and snap.outputViews inside a mapper but didn’t get the expected results. (2) Records fetched from source system like snowflake, salesforce, oracle, etc. without using a count command in the query itself I’m thinking of using a Group By or an Aggregate snap to get the counts, would that be the right approach? (3) Counting number of records processed after the operation has been completed. For instance, I’m writing a flat file (excel/csv) but want a new column ingested into that file dynamically that states the total number of docs processed AND send an email to the team that states total number of docs processed. e.g. File Reader/Salesforce Read --> Mapper --> excel/csv formatter --> File Writer --> Mapper (anticipating this should have some rules) --> Email Sender (sends count ONLY) Thanking you in advance for your time and help on this one. Best Regards, DarshSolved6.6KViews0likes2CommentsSalesforce Outbound Message Notification
A key feature in Salesforce is the ability to send outbound notifications upon changes to assets - such as Accounts, Contacts, Leads, etc. This can be useful for real-time integrations with external systems. To implement this feature, as a prerequisite, you should already have a Salesforce Developer account. This can be obtained for free. Also note that only new and modified records can be sent outbound. Deletions cannot be captured. Attached is a sample pipeline that receives an outbound message from Salesforce and sends a response back. Outbound Message Integration_2017_02_28.slp (6.5 KB)6.6KViews0likes12CommentsDate in Salesforce acceptable format
Hi Team, I have 2 fields, Start and End Date coming from upstream systems (i.e. snowflake) in UTC and want this to be inserted to downstream systems (i.e. Salesforce) in UTC as well. After developing the pipeline, we found that the dates are off by 4 hours when it goes into Salesforce. Thus, I tried changing the date to EST format in order to resolve the issue however at Salesforce, the dates are further going off by 4 hours. Should I just add 4 hours in my mapper which formats date so that it goes as is in Salesforce? If that’s the case, how should I add those 4 hours? It seems like the Salesforce Org is GTM-4 therefore it always converts the time - 4hours. Some screenshots for convenience. Snowflake execute with the below settings: EST Add-on: With the EST add on, the dates on Salesforce is going as 2025-12-29T15:00:00Z which is 29 Dec 2025 3pm. Removed EST Add-on: While removing the EST add-on, dates on Salesforce is still going as (Date - 4 hours) i.e. 29 Dec 2025 8pm. How can I tackle this? Thanking in advance for your time. Regards, DarshSolved6.5KViews0likes7CommentsHow to access Record Id after Salesforce Create Snap
Hi there, I am trying to access the newly created record Id by in a Mapper Snap based on the information that is collected in a Salesforce Poller Snap. Unfortunately when I try to stipulate Id it refers to a previous variable used to map some data. I’ve even added a File Reaser and CSV Parser Snap to get access but this doesn’t seem to do the trick.Solved6KViews0likes6CommentsAnyone got SOAP execute for Salesforce working?
I am getting error: Failure: An exception occurred while executing the SOAP request, Reason: Could not send the SOAP request, Resolution: Verify that the template is correct, the substituted values are valid and the provided envelope matches the namespaces that are required by the targeted service how an basic account should be configured? Do we need to give api token also in password on setting up account? Do we need to have separate login call for salesforce login to get session ID? Any help is much appreciated.5.6KViews0likes7CommentsOrder of Execution Not Right
Hello, A pipleine I’m working on seems to attempt to execute the Upsert Content (2) snap before the Create Deal/Job snap is executed. Since the Content record is a child of the Deal/Job, the absence of the Deal/Job Id is causing the Upsert Content (2) to fail. I’ve tried to route the documents down the one branch but the pipeline fails because Salesforce (the endpoint), doesn’t recognise the additional variables in the Map Deal/Job snap if the Pass Through option is selected. I’m not sure how to best approach this. Please note my understanding of SnapLogic is beginner level and I’m not a developer by trade.5.4KViews0likes8Comments