Skip to content

feat: Salesforce RR Skip Accounts - Match On Email Domain#17350

Merged
CarinaWolli merged 4 commits into
mainfrom
salesforce-creating-contact-check-owner
Oct 28, 2024
Merged

feat: Salesforce RR Skip Accounts - Match On Email Domain#17350
CarinaWolli merged 4 commits into
mainfrom
salesforce-creating-contact-check-owner

Conversation

@joeauyeung
Copy link
Copy Markdown
Contributor

What does this PR do?

Currently when RR skip on Salesforce is enabled and we check against the accounts, we check for the presence of the exact email of the attendee. Since accounts are made up of a collection of contacts, we should also match against the email domain of those contacts.

  • Fixes #XXXX (GitHub issue number)
  • Fixes CAL-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

@keithwillcode keithwillcode added consumer core area: core, team members only labels Oct 26, 2024
@dosubot dosubot Bot added crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid ✨ feature New feature or request labels Oct 26, 2024
@vercel
Copy link
Copy Markdown

vercel Bot commented Oct 26, 2024

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 Oct 28, 2024 2:11pm
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Oct 28, 2024 2:11pm

@graphite-app
Copy link
Copy Markdown

graphite-app Bot commented Oct 26, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (10/26/24)

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

`SELECT Id, Email, AccountId FROM Contact WHERE Email LIKE '%@${emailDomain}' AND AccountId != null`
);

const accountId = this.getDominantAccountId(response.records as { AccountId: string }[]);
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.

Nit: Don't need to set this to accountId. Can just return.

Suggested change
const accountId = this.getDominantAccountId(response.records as { AccountId: string }[]);
return this.getDominantAccountId(response.records as { AccountId: string }[]);

);

const accountId = this.getDominantAccountId(response.records as { AccountId: string }[]);
return accountId;
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.

Suggested change
return accountId;

@github-actions
Copy link
Copy Markdown
Contributor

E2E results are ready!

@CarinaWolli CarinaWolli merged commit e6dbb19 into main Oct 28, 2024
@CarinaWolli CarinaWolli deleted the salesforce-creating-contact-check-owner branch October 28, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

consumer core area: core, team members only crm-apps area: crm apps, salesforce, hubspot, close.com, sendgrid ✨ feature New feature or request ready-for-e2e

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants