1,017 reputation
623
bio website
location Perth, Australia
age 31
visits member for 3 years, 2 months
seen Sep 26 at 10:03

Lead SharePoint developer for a major Australian mining company.


Jan
20
revised Is it possible to limit the visibility of list items to not only just me (the author), but anyone from my company too?
Added example
Jan
20
comment Is it possible to limit the visibility of list items to not only just me (the author), but anyone from my company too?
Hi Steve, setting the SecurityBits property to 22 will cause this behaviour: "Users can read only their own items" and "Users can edit only their own items". If you read my question again you'll see that I need the people from every author's company to be able to read & edit that author's items. Please see the example I just added to the original question.
Jan
20
comment FilterDefinition CamlQuery
If you've followed all the steps above, then the only room for error are the <FieldRef> attributes in your CAML. Try this... 1) query only the "Agent" field (the special characters in your other field name may be causing errors). 2) Remove "/New" from the field name, and 3) add LookupId="True" to the <FieldRef> tag. See the official FieldRef Element definition (make sure you read then comments at the bottom re: the LookupId property)
Jan
19
answered FilterDefinition CamlQuery
Jan
19
revised Is it possible to limit the visibility of list items to not only just me (the author), but anyone from my company too?
Added minor clarifications
Jan
19
awarded  Commentator
Jan
19
revised Is it possible to limit the visibility of list items to not only just me (the author), but anyone from my company too?
edited title
Jan
19
comment Is it possible to limit the visibility of list items to not only just me (the author), but anyone from my company too?
I've already got an event receiver setup on my list (it manually kicks off some workflows when new items are added) so I know how these work. I'm really looking for some specifics as to what code I'll need inside my ItemAdded event. Could you show me how to programmatically set permissions on a list item to achieve the "show this to me and anyone from my company" requirement?
Jan
19
asked Is it possible to limit the visibility of list items to not only just me (the author), but anyone from my company too?
Jan
19
comment Programmatically determine when Approval workflow has completed
I didn't know these existed. Thanks @Kai, this worked a treat.
Jan
19
accepted Programmatically determine when Approval workflow has completed
Jan
18
accepted Using tokens in custom list forms
Jan
18
comment Programmatically determine when Approval workflow has completed
It seems a little onerous to add and update a new hidden field when the workflow is already updating an existing one that has all the info I need. Ideally I'l like to keep my list and workflow intact and use on of the existing contructs (like event receivers etc) to trap this update. I'll keep looking for a solid solution for now...
Jan
18
revised Programmatically determine when Approval workflow has completed
added 1 characters in body; added 28 characters in body
Jan
18
asked Programmatically determine when Approval workflow has completed
Jan
16
answered Using tokens in custom list forms
Jan
16
asked Using tokens in custom list forms
Dec
22
comment Preventing alerts from being sent when programmatically updating list item
I had actually considered this @Russell, however the list I am updating is a large tracking list which gets used almost constantly by other employees. So whilst your solution would work from a technical standpoint, we didn't want to disable the alerts that users should be getting (during regular day-to-day list activities) and therefore affect the business. NB: our list has thousands of rows and so takes roughly twenty minutes to update, so the system would then be "down" for this time. We wanted the change/upgrade to be completely transparent to the end user and not affect their work.
Dec
20
answered find whether the current user is a member of a specific audience?
Dec
20
comment Get SPWeb by ID without Site Collection?
I wouldn't call this the "answer" to your problem. If anything I would've edited and/or closed your question.