I want to send a notification to all users with a specific functional role. I know how to get the list of users with the role from User in role, then get the contacts for the users from User profile. How do I feed the list of contacts or their email addresses to the Send email process element?
Unfortunately as for now there is no way to specify a role in the "Send email" element of the business process. But here is the solution that can fit your needs: you can specify one recipient in "To" field in the business process "Send email" element and on mail-server side you can setup filters which will transfer notification emails to some specific folder and then mail-server can transfer all emails sent to this folder to other mailboxes. And it will fit your business target. But I will notify our R&D team about your question and ask them to develop new logic that allows using roles in "To" field.
Unfortunately, I don't have access to configure anything on the mail server, except my own account. I need to be able to email a collection of users, contacts or email addresses in the process. I could use a section that is a collection of contacts and iterate through it, but that will require maintaining a duplicate set of information, much like maintaining an Outlook distribution list that gets updated manually. Thanks for forwarding the suggestion.
Well, there is another way how you can achieve a target. You can sync the mailbox for notifications with bpm'online. After that you can share access to this mailbox to a functional role needed. You can also specify that the application sync emails only from some particular folder. On mail-server you can create a filter which will put all notifications sent to this mailbox to a folder and as a result all users of this functional role will receive this email directly into the application and they will be able to see it.
The only mailbox I have available is mine, which I do use for sending notifications. I don't have access to change mail server settings, which is handled by IT. It would be a security breach to expose reading emails in my mailbox to other people.
Unfortunately as for now it is the only way to achieve a target: you need to sync another mailbox with the application (not your personal, but some work mailbox that can be used by employees), grant access rights for this mailbox to other system users based on their functional role and use it for reciving notifications. Developing new functionality on this topic demands huge work and changes applied to core features so it is the most easiest way to achieve a target now. Please use a separate mailbox with granting of access to functional role.
I requested an Outlook distribution list that I can manage to send the notifications when the project is live. I'd rather not have to maintain two separate lists, but it will work for now.
Unfortunately, you would not be able to put this value in the system setting manually and it is not recommended to change system setting dynamically. You can edit current year in the case number using business process. You can find more information about working with Date in business process here:
Any Idea how can i do this, lets say in Current Case Edit Page, I want to know in client code if my previous screen before opening the Case edit Page is whether Case Section or Account Edit Page (referring to case section detail inside account edit page).
You'll also need to add ConfigurationEnums to the modules list. This means you'll add ConifurationEnums to the module/page you're using this code above from:
I have a process including approvals, where I want if the Creator of the object is in the approver role, then the object skips the approval process. How do I use System Actions to get the functional roles of the Creator, which I know how to get using Read data, and determine if any of them are the approver role?
What I need also is to put logic on every record to identify which color it will be. The same as overriding the prepareResponseCollectionItem method in section, It will be like the code below, but I need to apply it on detail records. How can I do that with detail? repareResponseCollectionItem: function(item) {
// Calling the base method.
this.callParent(arguments);
item.customStyle = null;
// Determining the order status.
var running = item.get("Status");
//If the status of the order is "In progress", the record style changes.
if (running.value === OrderConfigurationConstants.Order.OrderStatus.Running) {
item.customStyle = {
// The text color is white.
"color": "white",
// The background color is green.
"background": "8ecb60"
};
}
}
The only way I could get that to work was a bit hacky. Add a saveDataRow method to override the existing one and do something like this (using Ext to reapply the styles). The code I used looked something like this (this is a shortened version)
saveDataRow: function(row, callback, scope){// this returns something like { "background-color": "#080808" } etc
var style =this.getRowStyle(row);
setTimeout(function(){
Ext.select("div[id$=item-"+ row.get(row.primaryColumnName)+"].grid-row-selected").applyStyles(style);}, 1000);this.mixins.ConfigurationGridUtilities.saveDataRow.apply(this, arguments);},
The problem is that depending on how long for the row to get actually saved could make this not work. I plan on revisiting this to apply the styles once the update is complete (instead of when the save starts) boy replacing the callback arg passed, but sharing this now so maybe it gets you in the right direction.
To perform some filtration in section via client code you should note on "getFilters" method. Actually, you should create a new replacing client module for your section and override this method.
The example can be found in "ActivitySectionV2" schema in "NUI" package.