You need to sign in to do that
Don't have an account?
Chad Saar
After creating an object, how do I get the object ID?
I am using the following line of code in the SDK to create a new Contact object. After creating the object how do I return the object Id?
SaveResult[] results = SfdcBinding.create(new sObject[] { contact });
or in a for loop:
for (SaveResult eachresult: results) {
........= eachresult.id;
}
All Answers
or in a for loop:
for (SaveResult eachresult: results) {
........= eachresult.id;
}