Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Create a Notification on my Custom Business Object, How to Define Recipients?

$
0
0

Hi experts,

 

I create a Business Object have a element field Createby, datatype is EmployeeID.

When I create Notification I can choose the field

2016-9-7 下午 05-05-27.png

 

and set Workflow rules Recipient Determination, I can select the CreatedBy

2016-9-7 下午 05-16-24.png

 

But I hope the Recipient is sent to My manager or My team on Create the new record.

So I define

[Label("Manager")] [Tooltip("Manager")] element ManagerUUID:UUID;

 

write Code on Event-AfterModify.absl:

if (employee.IsSet()){

  this.ToEmployee = employee.ToRoot;

 

 

  this.ManagerUUID = this.ToEmployee.CurrentOrganisationalUnitAssignment.ToParent.CurrentFunctionalManager.GetFirst().EmployeeUUID;

}

 

Because I don't how to transfer UUID to ID, So I try to use the UUID Field

2016-9-7 下午 05-20-11.png

Surprisingly, even satisfy my requirement.
when I create a new record Notification to my manager.

 

 

Currently, I don't know how to reach another requirement - Sent Notification To My team

Can you give me any idea.

 

 

Best regards

Daniel


Viewing all articles
Browse latest Browse all 9052

Trending Articles



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