I’m most likely not understanding this problem correctly, so I may be barking up the wrong tree, but I’m going to do my best to explain the problem.
Short Version
How can I poll a Salesforce record until the asynchronous method has completed? I believe I have to use a asynchronous method because I’m calling out to a web service from a trigger and I can only do that with the @future method.
Long Version
I have a Skuid page that is using Stripe Checkout API. I’m using the server-side method by using a custom object called Transaction__c. When the transaction record status equals ‘Process Payment’ it triggers the Apex Class to do a HTTP call to Stripe to start processing the payment.
I have to use a “@future method” to perform the callout since salesforce won’t let me perform a callout from a trigger without making it asynchronous. How can I make the Skuid page wait and keep checking the Salesforce record until it has gone to the correct Status?
I hope this makes sense. I’m in very unfamiliar territory.
Appreciate any help you can give!
Thank you
Question
How to poll Salesforce Record until future callout is completed and record has changed

Translate
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.