This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Need to find out all attributed modified in function onPreModify

Hi all!

I need to dynamically find all attributes modified in function onPreModify($Request).

I do NOT want to something like:

function onPreModify($Request)

{

if ((IsAttributeModified "edsva_myattribute" $Request) -eq $true)

        {
            #do something like mail info someone that a attribute "edsva_myattribute" changed for a certain user to a certain value
        }

}

 

rather I like to have:

function onPreModify($Request)

{

$attributeschanged = $request.thefuntionIlookfor() #give me a list all attributes changed 

foreach($attribute in $attrubuteschanged)

{
 
#do something like mail info someone these these x number of attributes changed for a certain user and the new values was x,z,y

}

Cant find that scenario in articles, maybe someone else has?

Best regards,

//Johan Salomonsson

Parents
  • Hi and thanks for the answer

    However, I would prefer not to specify any attributes that I am looking for because I want the function complete generic, I would like a way (function, property etc) to ask what properties has changed and go from there.

    Best regards,

    //Johan
Reply
  • Hi and thanks for the answer

    However, I would prefer not to specify any attributes that I am looking for because I want the function complete generic, I would like a way (function, property etc) to ask what properties has changed and go from there.

    Best regards,

    //Johan
Children
No Data