ICommitLeadToSFCommandHandler.Handle

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

var commitLeadToSFCommandHandler = Activate<ICommitLeadToSFCommandHandler>();
await commitLeadToSFCommandHandler.Handle(
    FromJson<CommitLeadToSFRequest>("{\"RavingFanId\":41832,\"LastName\":\"Vance / Matt Burns\",\"FirstName\":\"Ed\",\"Title\":\"Founder & CEO (Ed) / Executive VP (Matt)\",\"Company\":\"Ed Vance & Associates Architects\",\"Street\":\"1160 N Town Center Dr Suite 170\",\"City\":\"Las Vegas\",\"State\":\"NV\",\"PostalCode\":\"89144\",\"Country\":\"United States\",\"Phone\":\"7029468195\",\"Email\":\"evance@edvanceassociates.com\",\"Website\":\"https://www.edvanceassociates.com/\",\"LeadSource\":\"Employee Referral\",\"Fiscal_Year_End__c\":\"12/31\",\"Entity_Type__c\":\"S-Corporation\",\"Source_Email__c\":\"Morgan.Franklin@alliantgroup.com\",\"Source_Name__c\":\"Morgan Franklin\",\"CPA_Email__c\":\"jbanka@nvcpafirm.com\",\"CPA_Firm__c\":\"\",\"CPA_Name__c\":\"Jack P Banka\",\"CPA_Phone__c\":\"\",\"Service_Lines_Interested_In__c\":null,\"Existing_Client_Project_Manager__c\":\"Cullen Brungs\",\"Primary_Service_Line__c\":\"179D Services\",\"ASL__c\":false,\"Mattersphere_Referral_ID__c\":\"41832\",\"Matter_Number__c\":null,\"PM_ID__c\":\"1293\",\"CR_ID__c\":null,\"Submitted_By_ID__c\":4867,\"Submitted_By_Title__c\":null,\"Sub_Team_ID__c\":null,\"Team_ID__c\":null,\"CPA_Contact_Title__c\":\"Managing Principal\",\"Additional_Notes__c\":\"Client was reached out to by a competitor about 179D qualification for the non-profit architectural design work they've recently started doing. Reached out to Joe Kalkstein to set up a 179D qualification call to see if they meet the criteria. Client (Ed) has an interesting temperament--they value sticking to timelines/getting things done in a timely and communicative fashion. \n\nEd Vance is founder/CEO, but Matt Burns is typically the main point of contact. His email is mburns@edvanceassociates.com.\",\"Referring_Client_Consent__c\":\"Yes\",\"Existing_Client_Project_Number__c\":\"330009.0002\",\"Referred_By_Company__c\":\"Ed Vance & Associates Architects\",\"Referred_By_Contact__c\":null,\"Referred_By_Title__c\":null,\"Referred_By_Contact_Phone__c\":null,\"Referred_By_Contact_Email__c\":null,\"Current_Service_Lines__c\":\"R&D\",\"Existing_Client_Team_Director__c\":null}"),
    null,
    null);

Parameters

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

State

11/9/2023 6:36:40 PM (+410ms) 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)

+23ms Processing

Server:
wn1mdwk000175:5884
Worker:
ffe51bd0

+100ms Enqueued

11/9/2023 6:36:39 PM Created