cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MrtnM
Level: Powered On

Delete information in a SPO list field

Hi,

in my SPO list, I have an optional Groups and persons field/column.

I would very much like to build a flow, that, among other actions, when updating the object, it also deletes the information in this specific Groups and persons field. Is this possible?

 

 

 

In a text field, I can delete the existing information by simply replacing info with "--" or "empty" or any text I choose, see the green marking in the image.

 

 

But in a Groups and persons field, I am of course only allowed to insert a person/group, see the blue marking in the image. And what I want to do is just to empty this field. But I cannot find a way to do this.

Is it at all possible, or may there be a workaround? I have played with the thought of creating a "fake person" to be inserted, but that's not ideal.

 

 

Namnlöst-5.jpg

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Delete information in a SPO list field

Hi @MrtnM,

 

First you have to confirm that whether the property of this field is set to "Require that this column contains information".

If so, there is no way to delete the value of this field; if not, you could configure Update item action by referring to the following method.

If person/group has no value in it, it should be an empty array, so as long as you fill an empty array for this field, you could clear all the values inside.

  • Initialize an empty array variable and click "Enter custom value" to populate the variable value in this field.
  • Be careful not to configure variables in a single item. Be sure to switch the input type of the field to "input entire array" and then configure the fields.

Image reference:

11.PNG

Please take a try.

 

Best Regards,

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

View solution in original post

4 REPLIES 4
Community Support Team
Community Support Team

Re: Delete information in a SPO list field

Hi @MrtnM,

 

First you have to confirm that whether the property of this field is set to "Require that this column contains information".

If so, there is no way to delete the value of this field; if not, you could configure Update item action by referring to the following method.

If person/group has no value in it, it should be an empty array, so as long as you fill an empty array for this field, you could clear all the values inside.

  • Initialize an empty array variable and click "Enter custom value" to populate the variable value in this field.
  • Be careful not to configure variables in a single item. Be sure to switch the input type of the field to "input entire array" and then configure the fields.

Image reference:

11.PNG

Please take a try.

 

Best Regards,

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

View solution in original post

MrtnM
Level: Powered On

Re: Delete information in a SPO list field

Thanks,

I tried this, but since it is a "Persons or groups" column, it only accepts people or groups, so I got an error, translated "It was not posible to find the user"

 

{
"status": 400,
"message": "Det gick inte att hitta den angivna användaren .\r\nclientRequestId: fc9d4322-db48-4aaf-89e7-5da8433eb293\r\nserviceRequestId: 03f4bc9e-60c1-0000-4d58-eeada34e4f4d"
}
Community Support Team
Community Support Team

Re: Delete information in a SPO list field

Hi @MrtnM,

 

I know, my TestNull field is also of type Person/Group.

Imagine if this field has no value at the beginning, then it is an empty array and there is no Person or Group.

Could you provide a screenshot of your configuration?

I can successfully execute this side.

43.PNG

Do not configure variables in a separate item.

Need to click here and then configure the variables here.

42.PNG

 

41.PNG

 

 

 Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MrtnM
Level: Powered On

Re: Delete information in a SPO list field

Hi,

sorry - my bad. I was a little quick. Now it works fine. Thanks!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 108 members 3,292 guests
Please welcome our newest community members: