SAP Knowledge Base Article - Public

2861295 - How to allow 'External user visibility' to be set using Rule for Custom Object?

Symptom

This is a provision to set the 'externalUserVisibility' field via rules. ONB team has a usecase where they want to set the 'externalUserVisibility' field from onSave rule for all the custom Data Collection objects

Environment

SAP SuccessFactors HXM Suite

Cause

For ONB custom MDF objects customer can set the default value of the field mdfSystemExternalUserVisibility = 'y' in the "Configure Object Definition" page.

Currently, this solution would not work because mdfSystemExternalUserVisibility is an enum field, but we only support default values for Number and String fields.

Resolution

To configure the rule please follow the below steps:

  1. Go to Admin Center > Configure Object Definition
  2. Create new custom object definition or select any existing custom object definition
    Note down the name of object definition and Navigate to Configure Business Rules page (Go to Admin Center >  Configure Business Rules)
  3. Click on Create new rule icon(+)
  4. select the "Rules for MDF Based Objects" option under "Metadata Framework" section
  5. Enter the below Fields and Click on Continue button:
    Rule Name: provide any name
    Start Date: provide current date or any past date
    Base Object: select the object which has been noted down in step 2
    Purpose: Evaluvate
  6. Set "Always True" for if condition and in then block Set
    'mdfSystemexternalUserVisibility' field to 'yes'
  7. Navigate to Configure Object definition page (Go to Admin Center >  Configure Object Definition) and select the object definition noted down in step 2 and Click on Make correction link (Take Action-> Make Correction)
  8. Click on Save Rules dropdown and select the created new rule and save the object definition
  9. Navigate to Manage Data page (Go to Admin Center >  Manage Data). Under Create New Dropdown select the object name note down in step 2
    Enter the required fields and Hit the save button

Keywords

external user visibiliy, MDF-31297 , KBA , LOD-SF-MDF , Metadata Framework , How To

Product

SAP SuccessFactors HXM Suite all versions