• Evgeny Zhdanov
  • NEWBIE
  • 5 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
There is an out-of-the-box feature that creates an Opportunity Contact Role in case of Opportunity.ContactId isn't blank.
I have a trigger on OpportunityContactRole that performs two SOQL queries and sets Opportunity Details based on Contact.
If I try to insert 51 Opportunity (insert List<Opportunity>) it will fire the SOQL 101 error. The reason is that the out-of-the-box feature creates Opportunity Contact Roles one by one in the same transaction (not as a bulk of records). Is there any workaround?
There is an out-of-the-box feature that creates an Opportunity Contact Role in case of Opportunity.ContactId isn't blank.
I have a trigger on OpportunityContactRole that performs two SOQL queries and sets Opportunity Details based on Contact.
If I try to insert 51 Opportunity (insert List<Opportunity>) it will fire the SOQL 101 error. The reason is that the out-of-the-box feature creates Opportunity Contact Roles one by one in the same transaction (not as a bulk of records). Is there any workaround?
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_auth_jwt_flow.htm#sfdx_dev_auth_jwt_flow

Following the above steps, I am keeping on getting this error in running this command, any idea why? I am using free Developer edition online.
 
sfdx auth:jwt:grant --clientid mQ_ZAy3OwMRG2dGPyIt8KME3N --jwtkeyfile C:\Users\hujir\JWT\server.key --username jirong.hu@playful-bear-6bongz.com  --setdefaultdevhubusername --setalias my-hub-org