- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 07:48 AM
I have activity on the lifecycle event for new hire to upload photo for user profile. How can I update user profile photo after activity completed.
I tried having a flow that gets trigger after the HR task (photo activity) is completed which does the following:
- Copy attachment from HR task to sys_user record
- Update "Name" field on the new copy attachment record to "photo"
- Update "Table name" field on the new copy attachment record to "ZZ_YYsys_user"
This display the photo on the sys_user record but not on the portal
I also trying using the same flow to update the "live_profile" record.
What am I missing to display on the portal.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 10:22 AM
@valter479 If the steps you mentioned are not working then you can try the following steps too.
1. Try creating an entry in the live_profile table
2. Copy attachment from the HR Task to live profile
3. Photo field on the live profile record should store the sys_id of the photo stored in the attachment table
Here is how your live profile record should look.
The photo field on your live_profile should have the sys_id of photo stored in sys_attachment table
This how your record should appear in the attachment table.
Hope this helps.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-22-2023 10:22 AM
@valter479 If the steps you mentioned are not working then you can try the following steps too.
1. Try creating an entry in the live_profile table
2. Copy attachment from the HR Task to live profile
3. Photo field on the live profile record should store the sys_id of the photo stored in the attachment table
Here is how your live profile record should look.
The photo field on your live_profile should have the sys_id of photo stored in sys_attachment table
This how your record should appear in the attachment table.
Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 06:32 AM
Hi @Sandeep Rajput,
I tried on my PDI, it didn't work
Live Profile record:
<xml>
<live_profile>
<document>ca6a9fd247177110df624db3416d43d4</document>
<follower_count/>
<following_count/>
<image/>
<joined_feed>false</joined_feed>
<name>test test</name>
<photo>58a2af1a47577110df624db3416d4399</photo>
<short_description/>
<status/>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2023-12-26 13:23:50</sys_created_on>
<sys_domain>global</sys_domain>
<sys_domain_path>/</sys_domain_path>
<sys_id>449ad75647177110df624db3416d438f</sys_id>
<sys_mod_count>5</sys_mod_count>
<sys_updated_by>system</sys_updated_by>
<sys_updated_on>2023-12-26 13:57:05</sys_updated_on>
<table>sys_user</table>
<type>user</type>
</live_profile>
</xml>
Attachment record:
I also tried changing the file name to "photo" on the attachment record to match the property/field on the live profile table. That also didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 08:10 AM
Hi @Sandeep Rajput,
Ignore my last comment. It works by updating the live profile record. When I tested the first time by impersonate the user, it didn't show the photo. Today I impersonate the same user and it is showing. I think something was cache when I impersonated the user first time.
Thanks.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 08:52 AM
Glad to know that it worked for you Valter.