LightningFlowComponents icon indicating copy to clipboard operation
LightningFlowComponents copied to clipboard

FlowActionsBasePack 2.36 fails install with Contact.LastName encrypted

Open gillianreynolds opened this issue 3 years ago • 3 comments

With Shield encryption enabled for Contact.LastName, FlowActionsBasePack 2.36 fails to install/upgrade, with the following error:

LastName name from Contact GROUP BY LastName ^ ERROR at Row:1:Column:44 field 'LastName' can not be grouped in a query call
ConvertRecordsToCSVQueueableTest: LastName name from Contact GROUP BY LastName ^ ERROR at Row:1:Column:44 field 'LastName' can not be grouped in a query call

Could a standard picklist field (which cannot be encrypted) be used instead for this test?

gillianreynolds avatar Apr 01 '22 01:04 gillianreynolds

This is a good idea. Someone will need to modify the test. Note that if you're using sfdx you can get around this by removing that file and deploying directly.

alexed1 avatar Apr 17 '22 19:04 alexed1

Hi, about the test, I think you add a comment at the wrong place (line 19 of ConvertRecordsToCSVQueueableTest) but the GROUPBY is in the next method (line 60).

MaximeClavel avatar May 11 '22 21:05 MaximeClavel

There's an additional issue that prevents install for (some) Shield customers (v3.2)

Send_Better_Email_Testflow: Get_Contacts (Get Records) - Flow filters can't reference encrypted fields. Remove the reference to field "Name" on object "Contact".

The sample flows should be reconstructed to avoid filtering on fields likely to be Shield-encrypted. For Contact, use one of the OOTB checkbox fields or an ID field or maybe the Salutation field

cropredyHelix avatar Mar 17 '23 21:03 cropredyHelix