ICommitLeadToSFCommandHandler.Handle

// Job ID: #160151
using AG.A1.Scheduler.Project.Contracts.Contracts;

var commitLeadToSFCommandHandler = Activate<ICommitLeadToSFCommandHandler>();
await commitLeadToSFCommandHandler.Handle(
    FromJson<CommitLeadToSFRequest>("{\"RavingFanId\":41641,\"LastName\":\"Missing\",\"FirstName\":\"ralvarado@19six.com\",\"Title\":null,\"Company\":\"19six Architecture\",\"Street\":\"802 E. Cota Street, Suite A\",\"City\":\"Santa Barbara\",\"State\":\"CA\",\"PostalCode\":\"93103\",\"Country\":\"United States\",\"Phone\":null,\"Email\":\"ralvarado@19six.com\",\"Website\":null,\"LeadSource\":\"Employee Referral\",\"Fiscal_Year_End__c\":null,\"Entity_Type__c\":\"C-Corporation\",\"Source_Email__c\":\"Nhu.Nguyen@alliantgroup.com\",\"Source_Name__c\":\"Nhu Nguyen\",\"CPA_Email__c\":null,\"CPA_Firm__c\":\"McGowan Guntermann\",\"CPA_Name__c\":null,\"CPA_Phone__c\":null,\"Service_Lines_Interested_In__c\":\"Captive Insurance - Z\",\"Existing_Client_Project_Manager__c\":null,\"Primary_Service_Line__c\":\"Captive Insurance - Z\",\"ASL__c\":true,\"Mattersphere_Referral_ID__c\":\"41641\",\"Matter_Number__c\":null,\"PM_ID__c\":null,\"CR_ID__c\":null,\"Submitted_By_ID__c\":5052,\"Submitted_By_Title__c\":null,\"Sub_Team_ID__c\":null,\"Team_ID__c\":null,\"CPA_Contact_Title__c\":null,\"Additional_Notes__c\":null,\"Referring_Client_Consent__c\":\"Yes\",\"Existing_Client_Project_Number__c\":\"010704.TCS14845\",\"Referred_By_Company__c\":\"19six Architecture\",\"Referred_By_Contact__c\":\"ralvarado@19six.com Missing\",\"Referred_By_Title__c\":null,\"Referred_By_Contact_Phone__c\":null,\"Referred_By_Contact_Email__c\":\"ralvarado@19six.com\",\"Current_Service_Lines__c\":\"TCS\",\"Existing_Client_Team_Director__c\":null}"),
    null,
    null);

Parameters

CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

8/15/2024 4:20:57 PM (+2.204s) Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

Request failed with status code BadRequest

System.Net.Http.HttpRequestException: Request failed with status code BadRequest
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\nnguyen\source\repos\alliantOne\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 357
   at AG.A1.Framework.Rest.RESTClient.ExecutePOSTAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, IDictionary`2 bodyParameters, IDictionary`2 urlParameters, Nullable`1 requestDataFormat, Nullable`1 responseDataFormat) in C:\Users\nnguyen\source\repos\alliantOne\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 258
   at AG.Integrations.RESTClients.SalesforceREST.SalesforceApiClientController.GetToken() in C:\Users\nnguyen\source\repos\alliantOne\A1Solution\src-integrations\AG.Integrations.RESTClients\SalesforceREST\SalesforceApiClientController.cs:line 41
   at AG.A1.Scheduler.Project.Application.Helpers.SalesforceHelper.GetLeadByRavingFanId(String ravingFanId) in C:\Users\nnguyen\source\repos\alliantOne\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Helpers\SalesforceHelper.cs:line 52
   at AG.A1.Scheduler.Project.Application.Features.RavingFanReferralToSF.Commands.CommitLeadToSFCommandHandler.Handle(CommitLeadToSFRequest request, CancellationToken cancellationToken, PerformContext performContext) in C:\Users\nnguyen\source\repos\alliantOne\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\CommitLeadToSFCommandHandler.cs:line 30
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+30d 32m Processing

Server:
f6f5rv3-ag:26492
Worker:
5b4771f4
+1.532sSubmission to Salesforce - Started at 8/15/2024 11:20:55 AM
+1.631sSubmitting for RavingFan Record Id: 41641
+3.130sRequest failed with status code BadRequest

+260ms Enqueued

7/16/2024 3:48:49 PM Created