How to dynamically update a field value
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2015 07:27 AM
Hello,
I have the following question:
I am dealing with a request item, and I am setting the assignment_group field on the request item = to the assignment _group field from a specific catalog task. (to make this easier, I basically set up 2 variables on the Request Item / Catalog Task and am having the assignment_group field write to this variable so the coding was easier.
current.variables.AssignmentGroup = task.assignment_group;
current.assignment_group = current.variables.AssignmentGroup;
This is populating the Assignment Group field on the Request Item based on the assignment_group from the catalog task. However, if I update the assignment_group on the catalog task, it won't update the Request item assignment group.
Does anyone know how to make this dynamically update ? We would like to be able to update the task assignment group and have it flow all the way to the request item assignment group..
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2015 09:11 AM
Hi Mani, thanks for the response.
I tried this business rule and it is basically changing the assignment group of the catalog task back to what it previously was.
So here is the flow again (because I know it's difficult to follow if you don't have it in front of you 😞
Catalog Task - there is an assignment group field
Catalog Task / Request Item - I have created a variable called AssignmentGroup. There is code to populate the AssignmentGroup variable with the value from the assignment_group field-here is the code:
current.variables.AssignmentGroup = task.assignment_group;
Next,I have the Request Item assignment_group field reading from the AssignmentGroup variable using this code:
current.assignment_group = current.variables.AssignmentGroup;
This works fine, unless I update the assignment_group field on the catalog task.
What I need to have happen is for when the assignment_group field is changed, for the AssignmentGroup variable to be changed, thus updating the Assignment_Group on the request item.
I hope that might help clarify. Any suggestions would be welcomed!
Thanks!!!