Success Factors - Getting Department description in a customization rule

Which IIQ version are you inquiring about?

8.4.p1

Please share any images or screenshots, if relevant.

Share all details about your problem, including any error messages you may have received.

Hi all,

We are integrating successFactors application (employee module). We are reading there the default attributes from the application, along with a few of them extended that we need for our purposes.

As of now we are getting the default “Department” field from the schema application. This field is a text description, but the CompoundEmployeeAPI actually returns an ID. So that, we are sure that SuccessFactors connector is internally processing that ID and getting from SuccessFactors the text description associated. We want to replicate this functionality over a customization rule, we have a few custom fields in the connector that we are retrieving and they correspond to Departments ID. Now we have that, we want to customize it to show the attribute as its text description, but we don’t know what function we should use since it is internally in the connector.

Do you have any idea/suggestions about how we could achieve this?

Best regards,

Hi David,

Have you defined SFAPI path for those custom attributes? Are you able to get the required ID - Description using SuccessFactors APIs outside SailPoint (using Postman client)?

Thanks,
Pallavi

Hi @drodriguezacevedo

Welcome back to SailPoint Developer Community.

I believe you are using SuccessFactors connector.

See if you can get this Department description from a different attribute, add SFAPI path for it in your configuration, if it works, you can avoid coding.

If not then you can use Customization Rule in SuccessFactors application.

String department = (String)object.getAttribute("department");
String deptDesc = null;
if ( department != null ) {
if ( department == "1") {
deptDesc = "Department 1";
} else if ( department == "2") {
deptDesc = "Department 2";
}
object.put("departmentDescription", deptDesc);
}
return object;

I would suggest you to create a Custom object with all the Department ID and Department Descriptions and use it in Rule, so that you do not need to touch the Rule when there is change in this department mappings.

Cheers
Krish

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.