Hello,
AML works in Nash.
When an user is created i want to put his identity into another identity.
This method is plugged on after add event of identity item type.
Could you tell me id i missed someting ? Should i put an apply somewhere ?
Innovator _innovator = this.getInnovator();
System.Diagnostics.Debugger.Launch();
//get id of the identity of the user created
var New_identity = this.getID();
Item New_identity_item = this.newItem("Identity","get");
New_identity_item.setProperty("id",New_identity);
New_identity_item = New_identity_item.apply();
var Is_Alias_1 = New_identity_item.getProperty("is_alias");
if ("1".Equals(Is_Alias_1))
{
//3007DCA0B6B949A0A0B5E51AF85A6B52 ***_Checker
string aml = string.Format(
@"
<AML>
<Item type = 'Member' action ='add'>
<source_id>3007DCA0B6B949A0A0B5E51AF85A6B52</source_id>
<related_id>{0}</related_id>
</Item>
</AML>",New_identity);
}
System.Diagnostics.Debugger.Break();
return this;
Thanks you