cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
memsim1010
Helper II
Helper II

Scheduled Flow: Create or Update SharePoint list of employees from 'Get Group Members' action

Hello there,

 

I have been struggling with this for months and I would really love some help.

 

I am trying to create a scheduled flow that gets members of a certain group, retrieves profile information for each user, then compares the UPN of each user to a SharePoint list.  If the user exists, it would update the item in the list.  If the user does not exist, it would add the user to the list. 

 

I finally found this other post with a solution by @v-xida-msft here: https://powerusers.microsoft.com/t5/General-Flow-Discussion/Update-and-Create-SharePoint-Item/td-p/1...

I followed it to the letter and it does update existing items but, it is not adding items that do not already exist...

 

Please help!

3 REPLIES 3
v-alzhan-msft
Community Support
Community Support

Hi @memsim1010 ,

 

Could you please share a full screenshot of the configuration of your flow?

Please modify the Condition under the Filter Array as below and the flow could works:

1.png

 

The expression in the Condition as below:

length(body('Filter_array'))

Please let me know if your problem could be solved.

 

Best regards,

Alice       

 

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

memsim1010
Helper II
Helper II

@v-alzhan-msft 

That also results in a failure. The failure is on Create item and the error reads:

Action 'Create_item' failed.

"status": 400,

"message": "Cannot complete this action. \n\nPlease try again. 

 

Here is my full configuration:Screen Shot 2019-09-12 at 2.12.41 PM.pngScreen Shot 2019-09-12 at 2.12.49 PM.png

Hi @memsim1010 ,

 

Could you please share a screenshot of the Create item action when the action has run failed?

Please check from the Create item action to see why it has failed when run.

Could you please share the expression of CurrentMonth and Today field in the Create item action?

Also please delete the dynamic content in the CurrentMonth and Today field in the Create item action to see if the flow works.

 

Best regards,

Alice       

 

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

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (23,464)