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

Notification on Person Attribute Change

I have a question about some process orchestration, I'm not sure if this is possible. I have some custom stuff in the Web Portal so that when a user makes a request for, for example, their cost center to be changed, that will create a PWO object and go through an approval workflow. That part is OK I think.

I need to then have a process fire that detects that this PWO has been approved and send an email to concerned parties that this occured. The reason I need to check the PWO and not just the Person object is that I need to include the approvers centralAccount in the email. The problem is that this email needs to show both the old cost center and the new one to be presented to the third party. I could use the $ notation along with [o] to get the old value but since the process is being triggered by the PWO object update with a generation condition of something like 'approved equal to true' and not the Person object (which does have the uid of the cost center, both old and new) there is no way to address the old cost center from the process that is firing. I can't think of a way to get this value except by writing the old cost center to the PWO object and the cost center change is only an example, there are many different Person attribute changes where this same problem may arise. Can you give me any hints as to how this could work?

Parents
  • Hi dsw7,

    I think what I would look to do is to set 'log changes' on the cost center attribute (it may be set to watch by default I haven't checked) ...... that way when your process fires on ordergranted for the PWO you could query dialogwatchproperty for the 'old' value and obviously the 'current' value from the person table. And you can do this for any attribute you need to do this kind of action.

    HTH, Barry.
Reply
  • Hi dsw7,

    I think what I would look to do is to set 'log changes' on the cost center attribute (it may be set to watch by default I haven't checked) ...... that way when your process fires on ordergranted for the PWO you could query dialogwatchproperty for the 'old' value and obviously the 'current' value from the person table. And you can do this for any attribute you need to do this kind of action.

    HTH, Barry.
Children
No Data