From a9a8de7facd93cd4bf6216509e05ba2e6be0b31e Mon Sep 17 00:00:00 2001 From: Vinicius Mesel <4984147+vmesel@users.noreply.github.com> Date: Mon, 18 Dec 2023 11:10:28 -0300 Subject: [PATCH] Adds getattr to permission_set_ids on the permission_set issue --- target_salesforce_v3/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target_salesforce_v3/client.py b/target_salesforce_v3/client.py index ba068d3..9b64f8f 100644 --- a/target_salesforce_v3/client.py +++ b/target_salesforce_v3/client.py @@ -371,7 +371,7 @@ def add_custom_field(self,cf,label=None): # But then, we need to add the permissions to the Task sObject # So we change it back again from `Activity` -> `Task` sobject = 'Task' - for permission_set_id in self.permission_set_ids: + for permission_set_id in getattr(self, "permission_set_ids", []): self.update_field_permissions(permission_set_id, sobject_type=sobject, field_name=f"{sobject}.{cf}") def update_field_permissions(self,permission_set_id, sobject_type, field_name):