I am configuring a map in ArcGIS Online that includes a Workforce Assignments layer. In the map pop-ups I would like to convert some of the Guid fields (workerid, assignmenttype) into a readable format. I have tried the following Arcade expressions without success:
if ($feature.workerid == "{97dfbbb5-dd72-47ba-8696-b7ca9f546171}"){
return "Sarah"}if (Guid($feature.workerid) == "97dfbbb5-dd72-47ba-8696-b7ca9f546171"){
return "Sarah"
}
The new Worker Name field doesn't populate.

How can this be accomplished?