All Questions

Tagged with
Filter by
Sorted by
Tagged with
3
votes
1answer
144 views

Uncommitted Work Pending - Working around DML then WebService

I am working with Salesforce Connect and I am storing my token and expiration times in an encrypted custom setting. My connection is through the client credentials Oauth 2 flow. When a user queries ...
1
vote
2answers
274 views

Does an update called in an @future method count as being in the same transaction as the method that called it?

I am on occasion seeing a "You have uncommitted work pending. Please commit or rollback before calling out" error during a sequence of callouts that are part of the same transaction. So basically the ...
0
votes
1answer
82 views

Schedule Iteration of Webservice Callouts

I have an endpoint I am getting updates from, but the only arguments the end point takes is two date parameters. To keep the heap size down, I am limited to about a date range of three months. I am ...
1
vote
1answer
223 views

Webservice Callout and DML

I insert object X, do a web call out, and then take the data I get back from the call out to update object X. I found that you can't do DML before a webcallout so I broke this up into two methods and ...
0
votes
2answers
906 views

Error while doing a DML after a Webservice call

I need to parse a webservice result first to take actions afterwards. "You have uncommitted work pending. Please commit or rollback before calling out" I'm getting now this error, and there are a ...
2
votes
1answer
602 views

How to do a DML upsert/insert loop in custom object after JSON deserialization?

I'm fairly new to Apex and I am completely at a loss at what to do next. So far I was able to grab and deserialize my JSON I grabbed from a Web Service(This does a GET Method for info for salespeople)....
3
votes
3answers
14k views

Invalid conversion from runtime type LIST<ANY> to MAP<String,ANY>

I'm trying to make a webcall to pull data from an external webservice. After that call I would like to insert my data that comes in the form of JSON into my custom object called Company. However I am ...