Activity › Forums › Salesforce® Discussions › How can we post message along with some fields to yammer user profile when opportunity is created? › Reply To: How can we post message along with some fields to yammer user profile when opportunity is created?
MemberMarch 16, 2018 at 1:55 pm
You can do this is following way:
- Have a util class with a future method in it with the param String to be sent. This future method will be making API callouts to Yammer for posting the message.
- Have insert triggers on Opportunity as well as Task.
- In both the triggers, get the values to send in the message and create a string, call the future method from util class and pass the message String.
- Make API callouts in the future method as Salesforce does not allows making API callouts in the same transaction of Trigger.