Is there a way to get the record ID of the custom form that was just submitted? I know you can get the submitted field data by using the following code, but what I need to get is the ID of the record that was just added to the database.
private void viewBiz_OnAfterSave(object sender, EventArgs e)
string Field = viewBiz.GetFieldValue("Field").ToString();
If you have the actual BizFormInfo object you can use this to get the PK column name dynamically:
string idColumn = formInfo.Generalized.IDColumn;
If not, then I believe you can simply use:
int insertedID = viewBiz.ItemID;
Please, sign in to be able to submit a new answer.