Linked Questions

0 votes
2 answers
6k views

HTTP callout from trigger [duplicate]

I have the following setup Object : CurrencyConversion__c Field : Input_Currency__c Field : Convert_Currency__c I want to invoke a callout to an external webservice via a trigger (before ...
Varun's user avatar
  • 3,073
1 vote
1 answer
4k views

Callouts in triggers not currently supported? [duplicate]

I'm getting an error when I am call non void method from REST API class. Trying to add the Rest Response id in contract object. trigger RestAPIcalloutTrigger on Contract (after insert , after Update) ...
Jerry's user avatar
  • 15
1 vote
0 answers
51 views

Callout delay when HttpRequest is invoked in a trigger account [duplicate]

I'm doing a http request from salesforce, when I receive the response, I want to update an account field but it is visible until I refresh the page. Everything is in after update. Is there a way to ...
Edgar's user avatar
  • 1,279
0 votes
0 answers
14 views

Unable to call the Apex Callout from triggers [duplicate]

I have a apex Class which calls external ERP system and create/updates records there. The apex Class is like below public class createSegment { public class getAzureToken{ public String ...
user81642's user avatar
  • 667
8 votes
1 answer
14k views

Error: Future method cannot be called from a future or batch method

I have a managed packaged that I recently updated and it threw an error for a future method I have that sends information to a third party. The error I received was: Future method cannot be called ...
J.koh's user avatar
  • 189
3 votes
1 answer
4k views

@InvocableMethod/Process.PluginResult And @Future

Is it possible to set either the @InvocableMethod or Process.Plugin with a @future(callout=true)? My problem (bear with me): I have a trigger that calls a class the class creates an object and ...
Olivia's user avatar
  • 3,431
4 votes
3 answers
447 views

Make Salesforce alert my program when a certain change happens

I've successfully got the .NET c# toolkit running and I can talk with API by posting queries and getting accounts, cases etc. printed, which is very nice. This is what I want to achieve: When a user ...
jones's user avatar
  • 41
3 votes
1 answer
2k views

Avoiding Recursion While Updating Trigger Records

I'm running into roadblocks everywhere with this particular task. My goal is simply to have a trigger do a GET request on an external REST API service, get some data, and update the lead currently ...
Bruno's user avatar
  • 189
0 votes
1 answer
2k views

Using a web service callout in a trigger

I am trying to use this JSON parsing in a trigger. The purpose of the trigger is to insert latitude and longitude data to custom object "Branch__c" once data like address, city etc. are inserted so ...
Milan Hrdlicka's user avatar
4 votes
1 answer
1k views

Trigger fired by future function does not support callout

I'm developing an integration that makes an HTTP call to an external system from SFDC. The entry point for this code is an opportunity trigger. After a user updates the opportunity, my trigger fires, ...
nurath's user avatar
  • 367
0 votes
1 answer
1k views

DML operation and callout (synchronous)

I have a requirement where, on changing a particular field value of an account record from Lightning page layout, I have to make a callout. If the response from the callout is not successful, then the ...
nica's user avatar
  • 1,350
0 votes
1 answer
561 views

How to invoke a C# web service from a Salesforce trigger

I have written a C# web service and it has a web method that gets last inserted Account object from Salesforce by using Salesforce Web Service API after that inserts these datas to an MSSQL database. ...
user3864408's user avatar
1 vote
1 answer
488 views

How to use what3words API in Salesforce to convert w3w address to coordinates

I am using what3words (http://what3words.com) to save locations in Salesforce, by simply copying the w3w address from their app and pasting it into Salesforce using the mobile app. I want to then ...
Ben's user avatar
  • 880
0 votes
1 answer
185 views

Trigger(before insert) which generate's key/random string, after inserting the key, how connect to an external URL [closed]

trigger which generate's random string: trigger setAppKey on dftly_app__c (before insert) { if (Trigger.isBefore){ For (dftly_app__c dac: Trigger.new){ Blob b = Crypto....
Chandu's user avatar
  • 163
1 vote
1 answer
159 views

Cannot catch the result of ExecuteAnonymous in toolingAPI

I have a future method called out from a trigger which passes the ifcondition to be evaluated to this method and if this evaluates to true I need to call some classes. The problem here is even if the ...
Jyoti Zanwar's user avatar

15 30 50 per page