web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

JavaScript is not working for particular users

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

I have a piece of JavaScript code in the OnLoad event of a Financial form that contains a Subgrid which contains an entity called Adjustments with  1:N relationship.  I am using a web api call to pull back the to sum the Adjustment Amount and put it in a field called Total Adjustments on the Financials record.  There are 10 users, the code works for everyone except 3 users.  This user has tried edge, chrome, Mozilla, we have compared browser settings, they are all using the same role, one of the user's signed it from her machine with his credentials and it works which tells me it's browser or machine based.  I am not sure where else to look.  Any suggestions would be much appreciated.  Below is the code in use.

financial.PNG[View:/cfs-file/__key/communityserver-discussions-components-files/117/new-12.txt]

I have the same question (0)
  • Ray Profile Picture
    1,537 on at

    Is it possible that they have different privileges for the entity in sub grid records (Not role base, maybe shared or access team)?

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    Hi Liisa,

    Map security role & teams of the user experiencing the error on to the test user. Debig the JS will help you a lot.

  • Liisa Profile Picture
    5 on at

    Thank you for responding.  There is one user role.  I posted the code because it seems as if the code is getting blocked by something on his end.  We checked his browser settings and javascript is allowed.  I'm not sure where else to look.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans