How to get value in " first assigned to".

Community Alums
Not applicable

Hii Everyone,
 

Suppose in a incident I have created a new field name as "first assigned to" and prior to this there is already a field name as "assigned to" (we all know).

So, Scenario is like--
When we create a new incident and if something  some value is given in "assigned to" for the first time , then Save.
After that if we change the  value of "assigned to" for 3, 4 times.
So, now I need the very first value which was given to "assigned to" field   to "first assigned to".

Please provide a solution for this.


Thanks
Utsav

1 ACCEPTED SOLUTION

First Assigned to should be of type 'Reference' and refer sys_user table.

If you want it as string then clear Action sections and user script part and put below line:

 

current.u_first_assigned_to = current.assigned_to.getDisplayValue();

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

View solution in original post

5 REPLIES 5

Anil Lande
Kilo Patron

Hi,

You can create Before (insert/update) BR on your table

When to Run - Assigned To changes and First assigned_to is not empty

In Action set First Assigned to same as Assigned to

or you can use script to set First Assigned to value.

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Community Alums
Not applicable

Hii @Anil Lande 

See , I have  mentioned this in "when to run"

UTSAVJAISWAL_0-1688472599991.png

After that, in "Action"

UTSAVJAISWAL_1-1688472681636.png

It is showing invalid update.

Please, rectify me where I am making mistake.

Thanks

Utsav

Hi,

In Action section set it like below:

 

[First Assiged to] Same as [Assigned to]

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Community Alums
Not applicable

@Anil Lande 
See like.. "assigned to" is a reference field and "first assigned to" is as other then reference
Maybe that is the reason, it is showing error.

UTSAVJAISWAL_0-1688473678747.png

Thanks