SAP Knowledge Base Article - Public

2659309 - [Custom MDF] How to load values from standard EC objects to a custom MDF object on Initialise event.

Symptom

  • How to pull data from standard EC objects (Personal Info, Job Info etc) to a custom MDF object on Initialize event using rule.

  • Initialize rule not working/ not able to set the values.

  • Initialize rule not fetching values into custom MDF object

Environment

  • SuccessFactors Cloud HCM: MDF

  • SuccessFactors Cloud HCM: MDF Business Rule

Reproducing the Issue

1) Create a business rule to set the values into custom MDF portlet from standard EC object. See the KBA 2562069 to learn how to do that .

 2) Configure it on the Initialize event. (Configure Object Definition - > Rules -> Initialize Rules)

 3) Attempt to create the data for the portlet. -> The values are not being fetched/ set as per rule, fields are rather blank.

Cause

The rule executes, but does not serve this requirement in this case. The object from where the values are being fetched are pre delivered EC objects and any data that is needed from them has to be extracted on the basis of externalCode (User) as per KBA mentioned above in 3rd Step.

The calculation of externalCode does not happen on the Initialize event (first load up) and hence rule is not able to establish a link with EC objects.

Otherwise if you try to raise a message or set a value manually into a field (Set field =  Value = ABC), it would reflect as expected. Only the fields from EC objects won't be fetched.

Resolution

To achieve this requirement, we can put the rule on effectiveStartDate field as an onChange rule. This field is intantiated when we click on the Edit button (Penicl Icon) and hence the values will be fetched and set the moment portlet loads up for the data entry.

Keywords

  • MDF: Metadata Framework
  • Custom MDF portlets
  • Business rules
  • Initialize Rules
  • onLoad event
, KBA , LOD-SF-MDF-RUL , Rule Issues in MDF Object , How To

Product

SAP SuccessFactors HCM Core 1805