on 2019 Jun 27 6:24 AM
Hello.
Is it possible to get an ID of a created entry?
For example:
var accountNode : elementsof Customer;
var newCustomer;
accountNode.CategoryCode = "1";
roleNode.RoleCode.content = "CRM000";
newCustomer = Customer.Create(accountNode);
I need to get ID field on a run-time but it is not yet known until record is saved. Any workarounds for this?
Request clarification before answering.
Hi Veliks,
ID will only be generated when an instance is saved in the database. If the code is in your custom action, you can try to call Save after BO action. And try to read the created instance in another action as by then entry will get generated.
Regards,
Abdul Rasheed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.