Topic by Sérgio Braun
Content
Hi all!
I'm trying to make a CPM to populate a field with the "last assigned".
To clarify my doubt, I will explain my logic and below is my code:
I created three fields: Current Assigned (CA), Assigned Source (AS), and Last Assigned (LA).
Here's my logic for CPM:
I create a new Incident and edit the AssignedTo field (default field)
$ incident-> AssignedTo-> Account = "Sergio"
CA = $ incident-> AssignedTo-> Account
AS = $ incident-> AssignedTo-> Account
save;
I hit the AssignedTo field for "Vivian"
$ incident-> AssignedTo-> Account = "Vivian"
LA = CA;
CA = $ incident-> AssignedTo-> Account;
save;
However, the second block is not executed. For better visualization of my logic, analyze my code.
Is there any way to do this kind of parameterization not using CPM or Add-In? Does RightNow have a specific field for this?
This information via report does not supply me, need to show in the Incident workspace.