cancel
Showing results for 
Search instead for 
Did you mean: 

Get mskey from attribute (manager name) from user data (HR no SAP)

Former Member
0 Kudos

Now we are facing other challenge.

We are doing initial load from HR pulling employee data

One field is related manager employee that is placed on HR.

How can I get this value (name) and change to mskey .

I am trying use uis_get (idstore numeber, parameter)

parameter I am using the variable that contains  (manager name)

funcition.nampermskey (%Manager_name%)

uis_get (idstore numeber, parameter)

Do you have any idea how get mskey from name (from HR no SAP).

I need ensure that the manager from HR is the manger on IDM.

To bring manger from HR and assing the same in IDM.by user.

I need translate the employee manager to mskey and then mx_manager=mskey(employee manager).

Is this?

Regards

THank you.

Miguel

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi experts.

The script was able to get mskey but some results were truncated, In some cases I have different mskey to the same person.

It looks that the script beging fine and lost itself during the execution.

I do not know if the initial load is running in the same time read and write from HR and truncated the results.

I ran the initial load with the function disabled, and after when all data are in IDM I ran again with function enable, but the same problem raised.

Thank you for you help.

Miguel

terovirta
Active Contributor
0 Kudos

Miguel Santos wrote:

I need translate the employee manager to mskey and then mx_manager=mskey(employee manager).

 

If you're trying to assign the manager MSKEY in toIdStore-pass and you know the MSKEYVALUE of the manager you don't need a function.

In toIdStore-pass You can get the MSKEY from MSKEYVALUE by referencing the mskeyvalue with less and greater than characters around the attribute where the value is..

All you need to do is: MX_MANAGER=<%THE_ATTRIBUTE_THAT_HAS_MGR_MSKEYVALUE%>

terovirta
Active Contributor
0 Kudos

Do you store any kind of unique identifier from HR to IdM that would enable you to identify the user and manager? Like personnel numbers and personnel number of user's manager?

If you do, then it's pretty much the same look-up function as it would be with SAP HCM.

regards, Tero

Former Member
0 Kudos

Hi Miguel,

Yes, you are doing it correct. But keep in mind that the java script is case sensitive.

In your script, in the line function get_manaer_mskeyvalue (PaR)) you are passing the value as PaR

in the next like var managermskeyvalye = usIS_Get(2,Par);

It should be same in both the lines, either PaR or Par.

Correct it. It will work. Otherwise your approach correct.

All the best !!

~Krishna,

terovirta
Active Contributor
0 Kudos

Krishna Kumar Duddu wrote:

in the next like var managermskeyvalye = usIS_Get(2,Par);

It should be same in both the lines, either PaR or Par.

Correct it. It will work. Otherwise your approach correct.

No it doesn't, the call is missing the attribute name and the function returns an entry (whole mx_person record in this case) not a mskey or mskeyvalue.

OutString=uIS_Get(Int iStore, String Attribute, String AttValue[, Boolean ExactMatch]);

Former Member
0 Kudos

Tero,

You are giving the syntax for uIS_sGet.

I was mentioning the syntax for uIS_Get

OutString=uIS_Get(Int iStore, String EntryValue);

The syntax mentioned for uIS_sGet has typo error it seems. May be we can ask SAP to correct the help notes from


OutString=uIS_Get(Int iStore, String Attribute, String AttValue[, Boolean ExactMatch]);


to


OutString=uIS_sGet(Int iStore, String Attribute, String AttValue[, Boolean ExactMatch]);

~ Krishna.

terovirta
Active Contributor
0 Kudos

Oops