Question
CI
IN
Last activity: 29 Mar 2023 2:53 EDT
How to Convert Opertor Id to Opertor Name in report
Hi ,
In case transfer one user to another use i used ressaign OOTB activity, Then i create for reassign cases .Here i will take original user and new user
Original user=.pyWorkPage.pxFlow(CreateNewInvoice).pyFlowParameters.AssignTo
AssignTo=opertorId
In report Original user means it's show only id's not User name
Pxflow page there is no user name .
How to relsove this issue ,I need to show user name instead of used Id
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 9 Mar 2023 9:55 EST
Bits in Glass
IN
@kirti Perfect. Please change the setting of originalusername like below.
OriginalUserName = D_pxOperatorDetails[OperatorId:.pyWorkPage.pxFlow(CreateNewInvoice).pyFlowParameters.AssignTo,ForceReload:false].pyUserName
Pegasystems Inc.
IN
@kirti Hi Can you please let us know if you are query from the Assign-Worklist class? If yes you can use this property "pxAssignedUserName".
Bits in Glass
IN
@kirti are you writing your Report definition on work class? Can you please send the screenshot of your RD? Seems like you are showing original user and current user for all the cases. If my assumptions are right, you can use sub report on Assign-worklist to get the name. Pass pyuseridentifier(your pxflow()....) To sub report and use that as filter on sub report and fetch the operator name and use that in main RD column.
Updated: 13 Mar 2023 2:12 EDT
CI
IN
My RD in Work Class Only For current user i used assign-worklist calss
I attached RD and activity
Accepted Solution
Updated: 9 Mar 2023 9:55 EST
Bits in Glass
IN
@kirti Perfect. Please change the setting of originalusername like below.
OriginalUserName = D_pxOperatorDetails[OperatorId:.pyWorkPage.pxFlow(CreateNewInvoice).pyFlowParameters.AssignTo,ForceReload:false].pyUserName
Updated: 29 Mar 2023 4:16 EDT
CI
IN
Hi Krishna ,
For 1st assign case one user to another user original name not setting properly .But we reassign the case to another user it's work fine .
How to solve that issue ,please help me
CI
IN
@Anoop Krishna Yes Krishna
Bits in Glass
IN
@kirtiok. kirti, the first operator to which assignment got routed is the orginator. But if you run report initially, originator will not displayed. For that what you need to do is set originator in pre flow action of first assignment. Because currently you are setting originator on reassigning. You need to maintain a flag. So once it is reassigned, originator property should not be set again.
CI
IN
After creating a new invoice
I used DT on Preprocessing
How set the value
.originalusername =pyWorkPage.pxFlow(CreateNewInvoice).pxLastUpdate or
pyWorkPage.pxFlow(CreateNewInvoice).pxRouteToUserName
This is correct format ?
Please let me know
CI
IN
CI
IN
@Anoop Krishna Yes , Krishna
Thank you so much for your help .