Adminstrator · Salesforce

Call outbound message functionality in Process Builder (Workaround)

Process builder not supporting “Outbound Messaging” with in out of box functionality, but have workaround to archive that functionality instead of going separate workflow rule send outbound message.

You can archive using Apex Code. Create “@InvocableMethod” method apex code with HTTPS callout. Call that method inside process builder.

Sample Code :

public class OutboundMessaging
{
@InvocableMethod
public static void sendToExternalSysstem(List<Id> accountIds)
{
List<Account> lstAccount=[select id, Anme from Account where Id in :accountIds];

//Build HTTP callout here
}
}

Use this method inside Process Builder

Screen Shot 2016-08-12 at 8.57.51 AM

 

Note : You can archive this functionality using Workflow Rule. This is out of box functionality.

One thought on “Call outbound message functionality in Process Builder (Workaround)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s