@Brice235i
Im not sure it will work for you, but I figured out an expression that pulled the user ID for who completed the planner task.
In a few other posts about similar issues I found this expression to get the user id for who completed a planner task:
triggeroutput?(‘conpletedBy’)?(‘user’)?(‘id’)
But I had trouble running it. So I started looking at the way my flow was built and realized I could change the expression to fit my flow. In my flow the user ID falls under an “Apply to each” step, so the expression I used looks like:
items(‘Apply_to_each’)?[‘completedBy/user/id’]
In looking at the picture of your flow, you might try adding the following steps:
1. After the trigger - add a “initialize variable” step for a string variable
2. After get task details - add an Office 365 users step called “Get user profile (V2)”. For this step try using an expression (instead of dynamic content) like:
items(‘Get_task_details’)?[‘completedBy/user/id’]
3. After the “Get user profile” step add a step to “Set variable” where the value is the Office 365 users “Display Name” dynamic content.
4. When you get to the SP “Update item” step, use the variable for the ‘Completed by Claims’ column where the user name should display.
I’m not sure if it would work (I’m still new at this), but thought I’d pass along the little I learned in case it helps.