Hello,
We have a requirement to update user's Avatar through automation job. Can anyone suggest how we can achieve this?
Thanks
Hello,
We have a requirement to update user's Avatar through automation job. Can anyone suggest how we can achieve this?
Thanks
We are able to update the avatar url for a user in the Widget Script. But inside automation, the avatar url is not getting updated using core_v2_http Script API. (Remote Avatars are allowed for users)
We are using below automation code in Javascript to update avatar url.
var url="https://community-qa.thomsonreuters.com/api.ashx/v2/users/"+userID+"/avatar.json";
var Data= '{"AvatarUrl": "https://xxxxxxx.com/xxxx.png"}';
var httpResponseResponse = core_v2_http.Put(url, { Data: Data, Headers: {"Rest-User-Token": 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx', 'Content-Type': 'application/json'}});
Can you please suggest how we can update avatar url in automation using javascript?
Hi Anshuman Prusty did you were able to solve your problem? I'm having the same situation/problem. Can't update user's Avatar using automation. The code below runs, but the Avatar remains the same. I'm using the event User.AfterCreate with the following Javascript code:
core_v2_userAvatar.Update(userId, { AvatarUrl: stringAvatarPath });
We have 13.0.2.33658 version.