• Hugh Wheeler 54
  • NEWBIE
  • 25 Points
  • Member since 2017

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 2
    Replies
Hi there.

I have created a scratch org and tried to enable Person Accounts.  When I navigate to the org, person accounts is not switched on.  I am using the following Scratch Org Definition file.

{
  "orgName": "App Name",
  "edition": "Developer",
"features": ["PersonAccounts", "RecordTypes","AuthorApex", "Communities", "Sites", "ExternalSharing", "ForceComPlatform", "API", "AddCustomApps:2", "AddCustomTabs:2", "DebugApex", "DefaultWorkflowUser"],
  "settings": {
    "chatterSettings": {
      "enableChatter": true
    },
    "nameSettings": {
      "enableMiddleName": true,
      "enableNameSuffix": true
    },
    "accountSettings":{
     "enableAccountTeams": true,
     "enableContactHistoryTracking": true
    },
    "enhancedNotesSettings":{
     "enableEnhancedNotes": true
    },
    "apexSettings":{
     "enableDisableParallelApexTesting": true
    },
    "activitiesSettings": {
     "enableGroupTasks": true,
     "enableSimpleTaskCreateUI": true,
     "enableDragAndDropScheduling": true,
     "enableSidebarCalendarShortcut": true,
     "enableMultidayEvents": true,
     "enableRecurringTasks": true,
     "enableActivityReminders": true,
     "showEventDetailsMultiUserCalendar": true
    },
    "emailAdministrationSettings":{
     "enableEnhancedEmailEnabled": true
    }
  }
}

Has anyone successfully done this?  I was wondering if its got to do with the 3 conditions you need to meet for person accounts, but i'm not sure.
Hi there,

We are using  the duplicate matching rules through apex to identify when a contact record already exists.  We are running this on a integration specific profile, it works on an admin profile, but I cannot see what settings actually enable this, nor find any documentation on it.  The namespace and method we are calling are:

Datacloud.FindDuplicates.findDuplicates();

If anyone knows what settings enable this that would be awesome.  I have already set the class to version 45, as I found out it doesn't work below this level.
We are creating a note against a custom object.  We are inserting a ContentDocumentLink record usinmg the following code:

              ContentDocumentLink cdl = new ContentDocumentLink();

              // link the link object to the note
              cdl.ContentDocumentId = cn.Id;

              // link to sObjects by Id
              cdl.LinkedEntityId = caseId;

              // set visibility
              cdl.Visibility = 'InternalUsers';

              // set ShareType
              cdl.ShareType = 'I';

I have tried using both a system admin and the normal user. This code works fin in our development environment but fails in our test environment.

I can only think that there is a setting in our test environment for which the sharing type and visibility combination is invalid, but I have no idea what that could be.  I have turned the content feature setting on for both users and that made no difference.  I have also cheked the OWD (Private) and it is the same in both environments.  

Has anyone seen this issue before?
 
Hi there.

I have created a scratch org and tried to enable Person Accounts.  When I navigate to the org, person accounts is not switched on.  I am using the following Scratch Org Definition file.

{
  "orgName": "App Name",
  "edition": "Developer",
"features": ["PersonAccounts", "RecordTypes","AuthorApex", "Communities", "Sites", "ExternalSharing", "ForceComPlatform", "API", "AddCustomApps:2", "AddCustomTabs:2", "DebugApex", "DefaultWorkflowUser"],
  "settings": {
    "chatterSettings": {
      "enableChatter": true
    },
    "nameSettings": {
      "enableMiddleName": true,
      "enableNameSuffix": true
    },
    "accountSettings":{
     "enableAccountTeams": true,
     "enableContactHistoryTracking": true
    },
    "enhancedNotesSettings":{
     "enableEnhancedNotes": true
    },
    "apexSettings":{
     "enableDisableParallelApexTesting": true
    },
    "activitiesSettings": {
     "enableGroupTasks": true,
     "enableSimpleTaskCreateUI": true,
     "enableDragAndDropScheduling": true,
     "enableSidebarCalendarShortcut": true,
     "enableMultidayEvents": true,
     "enableRecurringTasks": true,
     "enableActivityReminders": true,
     "showEventDetailsMultiUserCalendar": true
    },
    "emailAdministrationSettings":{
     "enableEnhancedEmailEnabled": true
    }
  }
}

Has anyone successfully done this?  I was wondering if its got to do with the 3 conditions you need to meet for person accounts, but i'm not sure.
We are creating a note against a custom object.  We are inserting a ContentDocumentLink record usinmg the following code:

              ContentDocumentLink cdl = new ContentDocumentLink();

              // link the link object to the note
              cdl.ContentDocumentId = cn.Id;

              // link to sObjects by Id
              cdl.LinkedEntityId = caseId;

              // set visibility
              cdl.Visibility = 'InternalUsers';

              // set ShareType
              cdl.ShareType = 'I';

I have tried using both a system admin and the normal user. This code works fin in our development environment but fails in our test environment.

I can only think that there is a setting in our test environment for which the sharing type and visibility combination is invalid, but I have no idea what that could be.  I have turned the content feature setting on for both users and that made no difference.  I have also cheked the OWD (Private) and it is the same in both environments.  

Has anyone seen this issue before?