Quantcast
Channel: Forum Microsoft Identity Manager
Viewing all articles
Browse latest Browse all 6657

Import ReferenceValue in ECMA (Generic Rest MA)

$
0
0

Hello all.

I'm using the Generic Rest MA to import objets coming from a Rest WS. One of the attribute of my object is an ID which represent the ID of the parent object. They organizational units so the attribute is parentEntityId. So what I want is that during the import, I want to generate a reference attribute in the CS to import it into the MV as as reference.

The issue is that the value I try to process (the ID) is a string and I don't know how to change it into a reference. I've tried many things but what I undestrand is that from the ECMA code of the Generic Rest MA source code, I cannot acces my MA to do something like ma.CreateDN. I've defined my attribute as a reference in CS schema (GetSchema) but obviouly when I do the import I've invalid-attribute-value error because in fact the value I get when calling the rest WS is a string.

Do someone know how to instantiate a ReferenceValue from a string ?

Is there any known trick to import attribute as reference in ECMA ?

Regards.


Viewing all articles
Browse latest Browse all 6657


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>