Select to view content in your preferred language

GetUser expression will not work with a question

392
1
08-29-2022 05:18 PM
NevilleWilson_Everick
New Contributor III

Hi

Any Ideas why this arcade expression will not work? Trying to populate the name of the user who made the change into the field.

The expression will work in arcade test mode; however the return will not update into the field.

The same question works to populate the date field.

var userInfo = GetUser(portal("https://rtw.maps.arcgis.com"),"")
var name = (userinfo["fullName"])
if ($feature["Buffer_Active"] == "Deactivated" || $feature["Buffer_Active"] != "Active"){
    return name
}

 

Test.png

Test2.png

I also had no luck with these expressions:

//var userInfo = GetUser(portal("https://rtw.maps.arcgis.com"),"")
var userInfo = GetUser($layer)
var name = (userinfo["fullName"])
//var userInfo = GetUser(portal("https://rtw.maps.arcgis.com")).fullName
if ($feature["Buffer_Active"] == "Deactivated" || $feature["Buffer_Active"] != "Active"){
return name
//return userInfo
}

eerr33.png

Run.png

eerr3.png

1 Reply
NevilleWilson_Everick
New Contributor III

@Anonymous User any help? Is this a known limitation?

0 Kudos