If I understand this right on the customer priority picklist you can change the value field from the CustomerPriority field to the Priority field. This way the customer priority is displayed as a text value ot the user but in the DB it stores a value and therefore you can update from the priority field.
Let me know if I am not on the right lines and I will try to help.
Thanks for your response.
Maybe a little more details might help here.
Below is my Pick-list definition. My value field is already Priority, The problem here is when I try to set the value of the custom field called MAV_Customer_Priority using a triggered action business rule on the OOTB Priority field (numeric 0 - 7 ) it fails the pick-list because 3 for example is not a value in the Display field (which for customer A is Minor).
I have added some screen captures below to hopefully make the clearer.
1 of 1 people found this helpful
I have a couple of options:
- I know the CurrentUserOrganizationalUnitName() function works in a trigger but is it passing to the pick list...you could test by removing the constrain on the pick list and see if that is the issue.
- Could you use an editing rule instead that on update of Priority then look up the Customer priority? Some thing like $(if S([OrganizationalUnit#_lncidentAssocOrganizationalUnit2]MAV UseCustomerSpecificPriority then Priority else MAV_Customer_Priority) The pick list will pick up the constrain as it is on the form.
Thanks for the suggestions which got me to thinking.
I have solved the problem by adding an "OR" constraint to my picklist. This appears to work. for the SelfService login it uses the first constraint because it returns true and assuming they are using normal shortcut logic it returns there. For the Employee (Service Desk Analyst) the first constraint returns false and the second looks at the previous picklist where we set the customer based on the profile user.
Using my binary flag in the Org unit called MAV_UseCustomerSpecificPriority, If the Customer prefers to use the custom Priority I will hide the Priority field and show the MAV_Customer_Priorty field. This way engineers cannot change the Priority field directly. they will change the Customer Priority field which has a rule to update the Priority field from the Customer Priority field.