You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you verified this is Salesforce Code Analyzer specific?
Yes
Description
I have a method in Apex for updating and creating custom object data, but when I added field permission validation for others, I did not scan any errors when adding data. However, when updating, I tried to place validation for all fields or in other classes, but the results were still the same
Set permission verification for all fields, save methods to other Apex classes, and scan to separate the added and updated methods into different methods
Urgency
High
The text was updated successfully, but these errors were encountered:
@ChWeiHeng , I'm not sure I understand the issue. It sounds like you're saying that replacing the first codeblock with the second one introduces a new violation that you feel is incorrect. Do I have that right?
If so, could you please post the contents of the PublicUtils.checkFieldUpdate method so we can see what it's doing?
Have you verified this is Salesforce Code Analyzer specific?
Yes
Description
I have a method in Apex for updating and creating custom object data, but when I added field permission validation for others, I did not scan any errors when adding data. However, when updating, I tried to place validation for all fields or in other classes, but the results were still the same
Output / Logs
CodeAnalyzerDFA.csv
Steps To Reproduce
I encountered this error during the second step of running the scanning code
Expected Behavior
My expected result was to pass the code analyzer's detection normally, but he gave me incorrect information
Operating System
Window11
Salesforce CLI Version
@salesforce/cli/2.67.7 win32-x64 node-v22.11.0
Code Analyzer Plugin (@salesforce/sfdx-scanner) Version
@salesforce/sfdx-scanner 4.7.0 Uninstalled JIT Plugins: community 3.3.2 custom-metadata 3.3.37 dev 2.5.0 devops-center 1.2.26 env 3.0.33 functions 1.23.0 signups 2.6.1 @salesforce/sfdx-plugin-lwc-test 1.2.1
Additional Context (Screenshots, Files, etc)
No response
Workaround
Set permission verification for all fields, save methods to other Apex classes, and scan to separate the added and updated methods into different methods
Urgency
High
The text was updated successfully, but these errors were encountered: