Skip to main content
static void assignPartnerLeadsResellTest() {

        User aPartnerUser = [

            SELECT Id, UserName, ProfileId, Profile.Name, ContactId, Contact.Name, Contact.AccountId 

            FROM User 

            WHERE Email = 'puser000@testlead.com'

        ];

 
1 件の回答
  1. 2023年1月24日 12:22
    Hi ,

    Generally this type of error occurs when the query is not returning any number of rows.

    Please check if this query is giving you any result?

    Please find the below article for same .

    https://help.salesforce.com/s/articleView?id=000385697&type=1 (https://help.salesforce.com/s/articleView?id=000385697&type=1)

    Let me know if you face any issues.

    If this solution helps, Please mark it as best answer.

    Thanks,
0/9000