Skip to content

Spreadsheet Import stored procedure enhancement - #220

Open
guymaness2 wants to merge 10 commits into
hotfix-17from
feature/gem-SpreadsheetImport_Sproc_Enhancement
Open

Spreadsheet Import stored procedure enhancement#220
guymaness2 wants to merge 10 commits into
hotfix-17from
feature/gem-SpreadsheetImport_Sproc_Enhancement

Conversation

@guymaness2

Copy link
Copy Markdown
Contributor

Thank you for your code contribution, we will take your code suggestion into consideration. It will be reviewed, and based on code quality and need addressed, we will determine acceptance. If this code addresses a feature request or issue, be sure to link to that issue.

Description

What does the change add or fix?

[Add a description here]

New Settings:

[Add a bulleted list of new settings here]


Release Notes

What does the change add or fix in a succinct statement that will be read by clients?

[Add a bulleted list of release notes here]


Requested By

Who reported, requested, or paid for the change?

[Add the client here]


Screenshots

Does this update or add options to the block UI?

[Add a screenshot here]


Change Log

What files does it affect?

[Add a file list here]


Migrations/External Impacts

Is it a breaking change for other versions/clients?

[Add a no or yes with explanation here]

@guymaness2
guymaness2 requested a review from nateh777 July 28, 2026 16:58
@guymaness2
guymaness2 changed the base branch from master to hotfix-17 July 28, 2026 16:58
RAISERROR('Importing phone numbers...', 0, 10) WITH NOWAIT;

DECLARE @PhoneTypeDefinedTypeId INT = (SELECT TOP 1 [Id] FROM DefinedType WHERE [Guid] = '8345DD45-73C6-4F5E-BEBD-B77FC83F18FD');
DECLARE @HomePhoneTypeId INT = (SELECT TOP 1 [Id] FROM DefinedValue WHERE [Guid] = 'AA8732FB-2CEA-4C76-8D6D-6AAA2C6A4303');

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Rename HomePhoneTypeId to HomePhoneTypeValueId


-- Best-effort formatted number for the default country code
UPDATE #phoneImport
SET NumberFormatted = CASE

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is formatted phone number required, or should we skip it and let Rock clean it up?


CREATE TABLE #newPhones (PhoneNumberId INT, PersonId INT, NumberTypeValueId INT, NumberFormatted NVARCHAR(50));

INSERT PhoneNumber (IsSystem, PersonId, CountryCode, Number, NumberFormatted, NumberTypeValueId, IsMessagingEnabled, IsUnlisted, FullNumber, [Guid], CreatedDateTime, ModifiedDateTime)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can we add phone numbers without messing with NumberFormatted and FullNumber?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant