Skip to main content

Notifications

Community site session details

Community site session details

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

How to clear a sub-field when a primary field is cleared

(0) ShareShare
ReportReport
Posted on by 50

I have created an 2 entities called Complaint Type and Issue. Complaint type serves as a parent field of Issue. So when a user selects complaint type, the list of choices for issue are limited. These fields are shown on the ticket (case) form. 

When a user creates a ticket, they choose a value for Complaint type, then a issue and saves the ticket and assigns to another group. 

Sometime, the other group might change the Complaint type but not the issue. 

I am looking for a way that if a user changes the complaint type, the issue field also gets cleared forcing the user to select a new issue that is based on the new choice of complaint type. 

  • Suggested answer
    Amit Katariya007 Profile Picture
    10,407 Super User 2025 Season 1 on at
    RE: How to clear a sub-field when a primary field is cleared

    Hello Tammy,

    No Problem happy to help you.

    Thank you,

    Amit katariya

  • Tammy Locashio Profile Picture
    50 on at
    RE: How to clear a sub-field when a primary field is cleared

    Thank you Amit!

  • Verified answer
    Amit Katariya007 Profile Picture
    10,407 Super User 2025 Season 1 on at
    RE: How to clear a sub-field when a primary field is cleared

    Hello Tammy,

    Please follow below steps and you will able to achieve this.

    1. Add a Business rule/JS on change of Complaint Type. Add a condition where if complain type is blank then clear the Issue lookup. That way user always need to fill issue field.

    2.  You need to create a relationship between the Complain type and issue entity which will be 1:N relationship. Means Add a lookup of "Complain Type" on the issue" entity form.

    3. Then Just add Both Complain type and issue entity's Lookup field on the Case form.

    4. Make small changes as per the below article in the Above lookup property and u will able to achieve the Logic.

    powerobjects.com/.../

    Thank you,

    Amit katariya

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March 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... 294,125 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans