Hi Guys,
I have a simple JavaScript running in the Task entity.
When a user enters data into two separate fields, the script create a subtask record (custom entity w/related-id field)
Since in certain cases the user might enter data when they create the task (on create). i don't have the ID to create the related field.
I figured if am in create mode I could save the entity (Xrm.Page.data.entity.save() ) before creating my related record, that way i would be able to read the id.
but the JavaScript appears to ignore the save command?
is this normal behaviour?
if i put code in the "on_Save" form event will i be able to read the id?