Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Sales forum / JavaScript doesn't...
Sales forum

JavaScript doesn't apply in Bulk edit CRM 2016

(0) ShareShare
ReportReport
Posted on by 87

i have JavaScript filter on lookups in Onload event its work fine when open form but when select more than one record to bulk edit the filter doesn't work, there is no javascript code apply when using bulk edit, so please if there are someone has solution for this 

Thanks 

  • djbryson Profile Picture
    djbryson 2 on at
    JavaScript doesn't apply in Bulk edit CRM 2016

    "I think the that's the correct behaviour. For one record javascript is working as it has one context, but if you select many records different contexts are there.

    E.g. Assume your OnLoad JS has a condition such as, if status == Draft, then Do Something

    In this case, JS has many different status' from many records.

    That's my idea and hope that makes sense."

    ------
    @Indika Abayarathne

    No, that doesn't make sense.  Bulk edit forms don't load values, since it's multiple records.  Bulk edit forms are blank, and used to set values.   Setting BehaviorInBulkEditForm to Enabled will enable Javascript, although only onload it seems
    https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/events-forms-grids?tabs=add-event-handlers-legacy

     

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: JavaScript doesn't apply in Bulk edit CRM 2016

    But this is unsupported or?

  • Verified answer
    Mebo Profile Picture
    Mebo 87 on at
    RE: JavaScript doesn't apply in Bulk edit CRM 2016

    Guys,

    thanks for trying to help me i solved it by edit in "Customization.xml" of the solution in Event Onload add BehaviorInBulkEditForm="Enabled"

    Regards..

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: JavaScript doesn't apply in Bulk edit CRM 2016

    Hi,

    there is no solution for this. this is standard behavior.

  • Suggested answer
    Indika Abayarathne Profile Picture
    Indika Abayarathne 671 on at
    RE: JavaScript doesn't apply in Bulk edit CRM 2016

    I think the that's the correct behaviour. For one record javascript is working as it has one context, but if you select many records different contexts are there.

    E.g. Assume your OnLoad JS has a condition such as, if status == Draft, then Do Something

    In this case, JS has many different status' from many records.

    That's my idea and hope that makes sense.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans