function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tlaurietlaurie 

Opportunity Update

How can I update an opportunity if there is no ID field?
SuperfellSuperfell
every object has an Id field, its baked right into the base definition of SObject.
tlaurietlaurie

When I look at the this ID field from my query (opportunity.id)

Dim opportunity As apex.Opportunity = CType(qr.records(i), apex.Opportunity)

it is always Nothing although other fields have data
SuperfellSuperfell
did you include Id in your soql query ?