2
votes
Accepted
FLS Create issue for Lead convert
You could use Database.convertLead(leadsToConvert, allOrNone, accessLevel), that let you set the desired AccessLevel, USER_MODE in your case:
List<Database.LeadConvertResult> lcr = Database....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
apex × 37250visualforce × 7308
trigger × 5175
unit-test × 2988
soql × 2850
batch × 1427
lightning-web-components × 1185
javascript × 1133
lightning-aura-components × 995
code-coverage × 883
json × 878
class × 837
rest-api × 826
callout × 815
controller × 752
community × 747
lightning × 679
map × 637
scheduled-apex × 571
email × 552
visualforce-component × 541
list × 541
visual-workflow × 501
governorlimits × 476
query × 470