Trying to insert a record with string parameters, but facing an issue with string exception
Logs show out for debug logs:
DEBUG|@@@@:::String 1:::TESTING 3
DEBUG|@@@@:::String 2:::["0011H000023s57sQAA"]
@AuraEnabled
public static string insertRcd(String str1,String str2)
{
System.debug('@@@@:::String 1:::'+str1);
System.debug('@@@@:::String 2:::'+str2); // record Id of Account - using JSON.stringify value is passed.
BM_Suite__c obj = new BM_Suite__c();
obj.Name = str1;
obj.Customer__c = Id.valueOf(str2);
insert obj;
return obj.id;
}