Skip to content

fix: Salesforce Stricter Website querying to prevent wrong account match during contact owner check#20133

Merged
keithwillcode merged 2 commits into
mainfrom
fix-salesforce-stricter-website-query
Mar 17, 2025
Merged

fix: Salesforce Stricter Website querying to prevent wrong account match during contact owner check#20133
keithwillcode merged 2 commits into
mainfrom
fix-salesforce-stricter-website-query

Conversation

@hariombalhara
Copy link
Copy Markdown
Member

@hariombalhara hariombalhara commented Mar 17, 2025

What does this PR do?

Followup of #19799

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 17, 2025

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

No release type found in pull request title "Fix-salesforce-stricter-website-query". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Mar 17, 2025 1:31pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Mar 17, 2025 1:31pm

@keithwillcode keithwillcode added core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO labels Mar 17, 2025
@hariombalhara hariombalhara force-pushed the fix-salesforce-stricter-website-query branch from e4af00f to b5a6b3a Compare March 17, 2025 13:09
const account = accountQuery.records[0] as { Id: string; Website: string };
log.info(
"Found account based on email domain",
safeStringify({ emailDomain, accountWebsite: account.Website, accountId: account.Id })
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Logging Website and accountId both it can confirm that when we matched what Website value was there for the account

const crmService = new SalesforceCRMService(credential, appOptions);
const account1OwnerEmail = "contact-account-owner1@example.com";
const account2OwnerEmail = "contact-account-owner2@example.com";
const account1OwnerEmail = "account1-owner@example.com";
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Better name

@hariombalhara hariombalhara changed the title Fix-salesforce-stricter-website-query fix: Salesforce Stricter Website querying to prevent wrong account match Mar 17, 2025
@hariombalhara hariombalhara changed the title fix: Salesforce Stricter Website querying to prevent wrong account match fix: Salesforce Stricter Website querying to prevent wrong account match during contact owner check Mar 17, 2025
@hariombalhara hariombalhara marked this pull request as ready for review March 17, 2025 13:30
@graphite-app graphite-app Bot requested a review from a team March 17, 2025 13:30
@hariombalhara hariombalhara requested review from joeauyeung and removed request for a team March 17, 2025 13:30
@dosubot dosubot Bot added crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid 🐛 bug Something isn't working labels Mar 17, 2025
@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Mar 17, 2025

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (03/17/25)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add ready-for-e2e label" took an action on this PR • (03/17/25)

1 label was added to this PR based on Keith Williams's automation.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 17, 2025

E2E results are ready!

@keithwillcode keithwillcode merged commit 3a181f1 into main Mar 17, 2025
@keithwillcode keithwillcode deleted the fix-salesforce-stricter-website-query branch March 17, 2025 20:34
hariombalhara added a commit that referenced this pull request Mar 19, 2025
…count match during contact owner check (#20133)"

This reverts commit 3a181f1.
hariombalhara added a commit that referenced this pull request Mar 19, 2025
…count match during contact owner check (#20133)"

This reverts commit 3a181f1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working core area: core, team members only crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid enterprise area: enterprise, audit log, organisation, SAML, SSO ready-for-e2e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants