Community
Showing results for 
Search instead for 
Do you mean 
Reply

Forcing a reload of data into an SDK object

Bronze Elite Contributor
Posts: 1,410
Country: United_Kingdom

Forcing a reload of data into an SDK object

Hi all, 

 

I have an instantiated Opportunity object (via ACT SDK Framework/C#).

It had the problem that on occasion it would not update the field I changed into the database.

Probably a lock issue.

 

Is there a way that I can force the object's data to be refreshed with whatever is currently in the DB and thus remove any possible lock?

Also I would like to use that to verify that the field has been updated:

1) refresh

2) read data and verify that it contains the expected value.

 

Is this possible in the framework?

 

Many thanks,

chip1

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Forcing a reload of data into an SDK object

Opportunity.Update should do the trick.

It will post the changes back into the DB.

 

-- Jim Durkin