try it
private void OnProfileCreateCallback(SubmitOperation submitOperation)
{
submitOperation.ChangeSet.AddedEntities.First().GetIdentity()
....
}
OnProfileCreateCallback is a callback method used in the context of .submitchanges (...)
You can put custom logic if you have multiple entries as part of the add.
source
share