Skip to main content

Notifications

Announcements

No record found.

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
    Leco Lv 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans