15

Web Application to Salesforce You don't state the technology your web application is built with, however the Salesforce REST and SOAP API's provide a full CRUD based API to the data in Salesforce, such that you can use these API's to callout from the appropriate place in your code. Salesforce to Web Application The Salesforce Streaming API is not ideal ...


7

The outbound message includes the OrganizationId as a parameter. Before I discovered that, I built a formula field on the object using the $organization global variable to pass the org ID, which works as well. Then you can configure your integration to determine which org it's coming from and process appropriately. I sent a simple outbound message that ...


7

For me it has been frustrating to have them in place because there is no response logging mechanism, as far as I'm aware. This lack exacerbates the difficulty of having asymmetric validations in place. In practice, that means that often, a record will save but fail to sync. And we can't determine why simply by looking at Salesforce. Thankfully we have ...


7

As per Documentation there is no limit for Outbound message per day. From what I am aware there isn't a limit on the number of outbound messages sent. API limit is only for incoming API calls. Outbound Message and APEX Callout is not counted in this limit. note that despite being on "Unlimited Edition" you are limited in the number of API calls that you can ...


6

http://requestb.in will let you see the XML that an outgoing message will send. So basically you need to do the following: Add requestbin url in remote sites of your salesforce instance Get a requestb.in endpoint from requestbin website (click "Create a RequestBin") Specify the requestBin endpoint in your outgoing message Trigger your outgoing message (it'...


5

The diagram in Understanding Outbound Messaging is helpful here. It shows Outbound messages starting from a workflow trigger. So the question becomes, which objects and associated fields can be used in a workflow? The ToolingAPI exposes WorkflowRule. The object that the workflow rule applies to is stored in the TableEnumOrId field. The enum (for example,...


5

Salesforce auto generates the XML format of the message that is sent to external system. You do not need to provide a WSDL to salesforce if you are implementing an outbound messaging. Only Endpoint uRL is required. How to create a listener SFDC gives you the WSDL when you create a workflow outbound message that can be used to create a listener . However if ...


5

I can't say there are any drawbacks.. Its just finding the right use case and applying which option to go with when integrating Salesforce with an external system.. With so many options around to integrate Salesforce with other applications, Lightning Connect Callouts Outbound Messaging Appexchange Packages Middleware / ETL Tools it comes down to ...


5

There's no documented minimum, and its subject to change, but its in the order of 2-5 seconds [depending on various things such as the performance of your endpoint]. However your latter comment highlights an issue, OM is at least once delivery, even if you ack the response that might not make it back to salesforce, and the messages will get delivered again, ...


5

You cannot use local host on salesforce. Your service had to be exposed on the internet. A quick and easy way to expose the local host to the internet would be using ngrok . ngrok allows you to expose a web server running on your local machine to the internet. Just tell ngrok what port your web server is listening on.


5

If you look at Salesforce Developer Limits Quick Reference | Workflow Limits: The immediate actions and each time trigger can have: 10 email alerts 10 tasks 10 field updates 10 outbound messages 10 flow triggers2 So it seems the only limit on outbound messages is number of callouts per rule.


5

TL;DR - your message cannot be delivered and the system stops trying. I don't believe you can access Salesforce's Dead Letter Queue for Outbound Messages. To understand what a Dead Letter Queue is, you may wish to read the definition on Wikepedia: In message queueing the dead letter queue is a service implementation to store messages that meet one or more ...


4

Yes, you can use the same endpoint for multiple outbound messages (Since the endpoint is defined on a per message basis) as long as the endpoint supports receiving multiple types.


4

We finally found the problem! Salesforce.com does not support SNI. You must use IP-based SSL. If you're trying to make an outbound HTTPS request from SFDC to your server which is hosted in some cloud platform (Windows Azure in our case) then chances are you are using SNI for SSL. SNI allows multiple SSL certificates to be assigned to the same IP address....


4

Outbound messaging is primarily server-driven. If your server went down for some reason, and you bring it back up, it would have to wait for messages to be delivered from Salesforce, which could take significant time; there's a "back-off" algorithm that increases the time between each attempted replay. In addition, because of this delay, it is possible for ...


3

If Account is the parent and Product_Code__c is the child, then you will need a Roll-up Summary (RSF) field on Account that counts the number of Product_Code__c children. Let's call it Account.Product_Code_count__c The RSF will only work if Product_Code__c is a detail in a master-detail relationship; if using lookup relationships - use Andrew Fawcett's ...


3

This workflow rule fire some time trigger which are currently in pending. for exa: if this field update send email after 30 days or if this record created or no update in last thirty days then send email something like that. Try to find and delete them first. Then you will be able to delete the WF. Update: To find the WF Queue When a workflow rule that has ...


3

This biggest drawback for me is the fact the order that Outbound Messages arrive cannot be guaranteed. Because of the re-try mechanism, it's possible that an Outbound Message may arrive 24 hours after it was sent, meaning Outbound Messages sent after the first may arrive before it. From Considerations for Outbound Messages Messages are retried ...


3

Nick, actually messages older than 24hrs aren't delivered at all. From the same document: If the endpoint is unavailable, messages will stay in the queue until sent successfully or until they are 24 hours old. After 24 hours, messages are dropped from the queue. Many customers/developers/architects/consultants often mistake outbound messaging to provide ...


3

The XML will look something like: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <notifications xmlns="http://soap.sforce.com/2005/09/outbound" xmlns:ns2="urn:sobject.enterprise.soap.sforce.com"> <OrganizationId>00DK00000000001AAA</OrganizationId> <ActionId>04k70000000L1TLAA0</ActionId> <SessionId ...


3

I'll try to answer point-by-point Is it a good thing to do? One advantage to the HTTP Callout is that you have a greater range of options for the payload... you could send a collection, or related records. Outbound Messages don't have that option. One of the best features of the Outbound Message (in my opinion) is the automatic queueing feature. Salesforce ...


3

Scratch Orgs do not have Change Sets, because they are not linked to your production org as Sandboxes are. If you don't see Change Sets in your production account, you do not have administrative access to this feature, or your production org doesn't have Sandbox licenses, so you'd need to contact your administrator or Sales.


2

Salesforce will keep retransmitting the message until it believes it was acknowledge alright. Can you confirm the raw response from your service actually looks like this? <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <notificationsResponse ...


2

My guess is that the new fields have no FLS (Field Level Security) set. If you select the name of the new field when viewing the object, you will see a Field Level Security button at the top. Make sure the visibility is checked for the profiles that need to see the field or run the flow. For the page layout, you need to switch the layout to your new ...


2

Another alternative is to simply not trust the payload of the outbound message, and use it instead to trigger your application to read from Salesforce. I.e. just use the org ID and record ID, then make a call on the REST API to read that object. This means you can never be fed bad data. The downside is that you use an API call (you only get so many a month) ...


2

First make sure that your webservice itself is working correctly. Try by calling the webservice from a tool like SOAP UI and see if you get the response you expect. If not, you should first make sure your webservice functions correctly. If your webservice is working correctly, it could be that your webservice is behind a firewall that is blocking ...


2

Lets do some guess here: 1) Do you have all as per this doc : https://www.salesforce.com/us/developer/docs/api/Content/sforce_api_om_outboundmessaging_setting_up.htm There is a line that says " If you do not have these options, your organization does not have outbound messaging enabled. Contact salesforce.com to enable outbound messaging for your ...


2

At a very high level both will work in many scenarios, but more complex scenarios cannot be accomplished with Outbound Messaging. I think the rule of thumb is similar to clicks vs. code. Outbound messaging can be leveraged with workflows and configuration within the UI of Salesforce. Making callouts to Web Services requires writing apex. We generally ...


2

I'm not 100% sure on this, but I can imagine this being a reason; If you use an outbound message, a message is sent to some endpoint and that it. There's no way of handling the response. The user who sets up the workflow in Salesforce is responsible for setting the correct endpoint, and thus making sure that no data is sent somewhere it shouldn't. The ...


2

You can't have one Salesforce Org directly send an outbound message to another Org that implements the notification WSDL in Apex. The webService that gets implemented in Apex will require a SessionID parameter in the request header. The outbound message can optionally include a session id, but there are two issues with this: It is a session id for the ...


Only top voted, non community-wiki answers of a minimum length are eligible