ICommitLeadToSFCommandHandler.Handle

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

var commitLeadToSFCommandHandler = Activate<ICommitLeadToSFCommandHandler>();
await commitLeadToSFCommandHandler.Handle(
    FromJson<CommitLeadToSFRequest>("{\"RavingFanId\":41835,\"LastName\":\"Mckenzie\",\"FirstName\":\"John\",\"Title\":null,\"Company\":\"La Playa Incorporated of Virginia\",\"Street\":\"550 Woodlake Cir\",\"City\":\"Chesapeake\",\"State\":\"VA\",\"PostalCode\":\"23320-8928\",\"Country\":\"United States\",\"Phone\":null,\"Email\":\"jmckenzie@lpits.com\",\"Website\":null,\"LeadSource\":\"Employee Referral\",\"Fiscal_Year_End__c\":null,\"Entity_Type__c\":null,\"Source_Email__c\":\"Bobby.Nutter@alliantgroup.com\",\"Source_Name__c\":\"Bobby Nutter\",\"CPA_Email__c\":null,\"CPA_Firm__c\":null,\"CPA_Name__c\":null,\"CPA_Phone__c\":null,\"Service_Lines_Interested_In__c\":\"R&D Services\",\"Existing_Client_Project_Manager__c\":\"Bobby Nutter\",\"Primary_Service_Line__c\":\"R&D Services\",\"ASL__c\":true,\"Mattersphere_Referral_ID__c\":\"41835\",\"Matter_Number__c\":null,\"PM_ID__c\":\"883\",\"CR_ID__c\":null,\"Submitted_By_ID__c\":883,\"Submitted_By_Title__c\":null,\"Sub_Team_ID__c\":null,\"Team_ID__c\":null,\"CPA_Contact_Title__c\":null,\"Additional_Notes__c\":\"Spoke with Alex K. on this opp. Running it by the client on next call, as release of 2021 looks to change the tax position of the firm and make an opportunity for R&D.\",\"Referring_Client_Consent__c\":\"Yes\",\"Existing_Client_Project_Number__c\":\"006712.0008\",\"Referred_By_Company__c\":\"La Playa Incorporated of Virginia\",\"Referred_By_Contact__c\":\"John Mckenzie\",\"Referred_By_Title__c\":null,\"Referred_By_Contact_Phone__c\":null,\"Referred_By_Contact_Email__c\":\"jmckenzie@lpits.com\",\"Current_Service_Lines__c\":\"ERC\",\"Existing_Client_Team_Director__c\":\"Reid McLaughlin\"}"),
    null,
    null);

Parameters

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

State

11/10/2023 12:39:04 AM (+423ms) 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:\agent\_work\1\s\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 354
   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:\agent\_work\1\s\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 258
   at AG.Integrations.RESTClients.SalesforceREST.SalesforceApiClientController.GetToken() in C:\agent\_work\1\s\A1Solution\src-integrations\AG.Integrations.RESTClients\SalesforceREST\SalesforceApiClientController.cs:line 41
   at AG.A1.Scheduler.Project.Application.Helpers.SalesforceHelper.GetLeadByRavingFanId(String ravingFanId) in C:\agent\_work\1\s\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:\agent\_work\1\s\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\LeadToSF\Commands\CommitLeadToSFCommandHandler.cs:line 30
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

+30ms Processing

Server:
wn0mdwk0000q9:10868
Worker:
d04900da

+94ms Enqueued

11/10/2023 12:39:03 AM Created