I have created a SharePoint list on my side and the data structure of it as below:Note: The User Principal Name (UPN) column, UserName column, Mobile Phone column and Email address column are all Single line of text type column. Each item has a unique User Principal Name (UPN) value, we would use this column (User Principal Name (UPN) column) to find the specific and unique item within my following flow.

I have made a test on my side and please take a try with the following workaround:

Add a "Apply to each" action, input parameter set to output of "List group members" action.

Within "Apply to each" action, add a "Get user profile (V2)" action, User (UPN) field set to User Principal Name dynamic content of "List group members" action.

Add a "Get items" action, specify Site Address and List Name. Then add a "Filter array" action, From set to output of "Get items" action, Within Condition box, left input box set to User Principal Name dynamic content of the "Get items" action, right input box set to User Principal Name dynamic content of the "Get user profile (V2)" action.

Add a Condition, click "Edit in advanced mode", type the following formula:

@empty(body('Filter_array'))

Within "If/yes" branch of Condition,add a "Create item" action, specify Site Address and List Name. The columns that you created set to corresponding dynamic content values of the trigger.

Within "If/no" branch of Condition, add a "Apply to each 2" action, input parameter set to output of "Filter array" action. Within "Filter array" action, add a "Update item" action, specify Site Address and List Name. Id field set to following formula:

item()?['ID']

Title field set to following formula:

item()?['Title']

The columns that you created set to corresponding dynamic content values of the trigger.

Image reference:

The flow works successfully as below:

Best regards,

Kris

Community Support Team _ Kris DaiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

I have created a SharePoint list on my side and the data structure of it as below:Note: The User Principal Name (UPN) column, UserName column, Mobile Phone column and Email address column are all Single line of text type column. Each item has a unique User Principal Name (UPN) value, we would use this column (User Principal Name (UPN) column) to find the specific and unique item within my following flow.

I have made a test on my side and please take a try with the following workaround:

Add a "Apply to each" action, input parameter set to output of "List group members" action.

Within "Apply to each" action, add a "Get user profile (V2)" action, User (UPN) field set to User Principal Name dynamic content of "List group members" action.

Add a "Get items" action, specify Site Address and List Name. Then add a "Filter array" action, From set to output of "Get items" action, Within Condition box, left input box set to User Principal Name dynamic content of the "Get items" action, right input box set to User Principal Name dynamic content of the "Get user profile (V2)" action.

Add a Condition, click "Edit in advanced mode", type the following formula:

@empty(body('Filter_array'))

Within "If/yes" branch of Condition,add a "Create item" action, specify Site Address and List Name. The columns that you created set to corresponding dynamic content values of the trigger.

Within "If/no" branch of Condition, add a "Apply to each 2" action, input parameter set to output of "Filter array" action. Within "Filter array" action, add a "Update item" action, specify Site Address and List Name. Id field set to following formula:

item()?['ID']

Title field set to following formula:

item()?['Title']

The columns that you created set to corresponding dynamic content values of the trigger.

Image reference:

The flow works successfully as below:

Best regards,

Kris

Community Support Team _ Kris DaiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.