Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Execution of workflow sets fields form fields to null

(0) ShareShare
ReportReport
Posted on by 20

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:

Screenshot_5F00_12.png

After save:

Screenshot_5F00_13.png

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

  • Leco Lv Profile Picture
    on at
    RE: Execution of workflow sets fields form fields to null

    Hi partner,

    Maybe your workflow is causing the problem, could you provide your workflow information?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Adis Profile Picture

Adis 136 Super User 2025 Season 1

#2
Sohail Ahmed Profile Picture

Sohail Ahmed 81

#3
Jonas "Jones" Melgaard Profile Picture

Jonas "Jones" Melgaard 77 Super User 2025 Season 1

Product updates

Dynamics 365 release plans