Hello all,
I'm facing a weird issue on creation of lead records
From main form of Lead entity, I create a new lead record, filling all required fields. Name and lastname included (logical names: firstname, lastname).
On creating of a new lead is registered a workflow(foreground) which creates a new contact, updates lead (not fields name and lastname)...
What happens is that after lead record is saved, on load of form fields "Name" and "Lastname" are dirty and null. (fields are changed only in client side. Record is saved correctly with the provided input for name and lastname)
Before save:
After save:
Fields have become null before execution of handler from js file (on the first line of handler I put a breaking point to check the value of fields).
I have disabled other functions on event onLoad of form. I have checked if were other functions registered in other events of fields or form. I have checked js files that are used on ribbon.
I couldn't find any js instructions that set field firstname and lastname to null on loading of form.
Now the cool part: if I disable the workflow I don't see this "bug". These fields are not set to null if workflow is disabled. From what I know, workflow should not cause changes on client side. No js is setting the value of these fields.
Ever faced a similar issue before?
Please let me know!
Thanks!
Albi