Skip to content

400 error - #15063

Draft
Bhagya Lakshmi Kukula (Bhagya767) wants to merge 1 commit into
Azure:masterfrom
Bhagya767:Salesforce400
Draft

400 error#15063
Bhagya Lakshmi Kukula (Bhagya767) wants to merge 1 commit into
Azure:masterfrom
Bhagya767:Salesforce400

Conversation

@Bhagya767

Copy link
Copy Markdown
Contributor

Required items, please complete

Change(s):

  • See guidance below

Reason for Change(s):

  • See guidance below

Version Updated:

  • Required only for Detections/Analytic Rule templates
  • See guidance below

Testing Completed:

  • See guidance below

Checked that the validations are passing and have addressed any issues that are present:

  • See guidance below

Guidance <- remove section before submitting


Before submitting this PR please ensure that you have read the following sections and filled out the changes, reason for change and testing complete sections:

Thank you for your contribution to the Microsoft Sentinel Github repo.

Details of the code changes in your submitted PR. Providing descriptions for pull requests ensures there is context to changes being made and greatly enhances the code review process. Providing associated Issues that this resolves also easily connects the reason.

Change(s):

  • Updated syntax for XYZ.yaml

Reason for Change(s):

Version updated:

  • Yes
  • Detections/Analytic Rule templates are required to have the version updated

The code should have been tested in a Microsoft Sentinel environment that does not have any custom parsers, functions or tables, so that you validate no incorrect syntax and execution functions properly. If your submission requires a custom parser or function, it must be submitted with the PR.

Testing Completed:

  • Yes/No/Need Help

Note: If updating a detection, you must update the version field.

Before the submission has been made, please look at running the KQL and Yaml Validation Checks locally.
https://github.com/Azure/Azure-Sentinel#run-kql-validation-locally

Checked that the validations are passing and have addressed any issues that are present:

  • Yes/No/Need Help

Note: Let us know if you have tried fixing the validation error and need help.

References:


@v-atulyadav
v-atulyadav requested a lite review from Copilot September 7, 2026 06:06
@v-atulyadav v-atulyadav self-assigned this Sep 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

Copilot was unable to run its full agentic suite in this review.

Pull request overview

Updates the Salesforce Service Cloud solution to address connectivity-check HTTP 400 errors by shortening the SOQL query, and bumps the solution version accordingly.

Changes:

  • Bumped solution/package/template versions from 3.7.0 to 3.7.1.
  • Updated the LoginHistory SOQL query to use FIELDS(STANDARD) to reduce query string length.
  • Added a release note entry describing the fix.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

File Description
Solutions/Salesforce Service Cloud/ReleaseNotes.md Adds 3.7.1 release note describing the SOQL change for HTTP 400 mitigation.
Solutions/Salesforce Service Cloud/Package/mainTemplate.json Version bumps + updates LoginHistory query used by the connector definition/template.
Solutions/Salesforce Service Cloud/Data/Solution_TSalesforceCloudtemplateSpec.json Updates solution template spec version to 3.7.1.
Solutions/Salesforce Service Cloud/Data Connectors/SalesforceAuditLogsConnector_CCF/SalesforceAuditLogs_PollingConfig.json Updates runtime polling SOQL query to the shortened FIELDS(STANDARD) form.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

},
"queryParameters": {
"q": "SELECT ApiType,ApiVersion,Application,AuthMethodReference,AuthenticationServiceId,Browser,CipherSuite,ClientVersion,CountryIso,ForwardedForIp,LoginGeoId,LoginSubType,LoginTime,LoginType,LoginUrl,OptionsIsGet,OptionsIsPost,Platform,SourceIp,Status,TlsProtocol,UserId FROM LoginHistory WHERE LoginTime > {_QueryWindowStartTime} AND LoginTime < {_QueryWindowEndTime}"
"q": "SELECT FIELDS(STANDARD) FROM LoginHistory WHERE LoginTime > {_QueryWindowStartTime} AND LoginTime < {_QueryWindowEndTime}"
},
"queryParameters": {
"q": "SELECT ApiType,ApiVersion,Application,AuthMethodReference,AuthenticationServiceId,Browser,CipherSuite,ClientVersion,CountryIso,ForwardedForIp,LoginGeoId,LoginSubType,LoginTime,LoginType,LoginUrl,OptionsIsGet,OptionsIsPost,Platform,SourceIp,Status,TlsProtocol,UserId FROM LoginHistory WHERE LoginTime > {_QueryWindowStartTime} AND LoginTime < {_QueryWindowEndTime}"
"q": "SELECT FIELDS(STANDARD) FROM LoginHistory WHERE LoginTime > {_QueryWindowStartTime} AND LoginTime < {_QueryWindowEndTime}"
@@ -1,5 +1,6 @@
| **Version** | **Date Modified (DD-MM-YYYY)** | **Change History** |
|-------------|--------------------------------|--------------------------------------------------------------------|
| 3.7.1 | 03-09-2026 | Shortened the Salesforce Login History SOQL projection using FIELDS(STANDARD) to prevent connectivity-check HTTP 400 failures. |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants