I use the code Xrm.Page.data.entity.save() during OnLoad so that the record is automatically created. This is needed as a workflow is triggered when the record is created to update some fields.
1. Is there a better way of doing this ? When I click the + to add a record on the subgrid, I am shown a new page but it seems the records is not created until I click save. This is causing confusion for many users as they are not aware that they have to click save for some fields to auto populate.
2. If there is no better way of doing this how can I stop the JavaScript from firing when the record has been created as if I click refresh / F5 it creates multiple records.
Thanks.
*This post is locked for comments
I have the same question (0)