cancel
Showing results for 
Search instead for 
Did you mean: 
Workflow Hero

Changing permission according to a query

I would like to change every permission of items that are created by specific user.

When making the WF with the query:

<Query>
<Lists>
<List ID="..." />
</Lists>
<ViewFields>
<FieldRef Name="ID" />
</ViewFields>
<Where>
<Eq>
<FieldRef Name="Author" LookupId="TRUE" />
<Value Type="User">USERNAME</Value>
</Eq>
</Where>
</Query>

I get empty string.

What could be the problem?

0 Kudos
Reply
1 Reply
Workflow Hero

Re: Changing permission according to a query

If you want to make search by user (display) name you have to configure LookupId="FALSE".

But note search by user display name need not be unique.

To make it working with LookupId="TRUE" you have to supply user ID in place of USERNAME value

0 Kudos
Accept as Solution Reply