Solved

Change Item Permissions with Custom Infopath Workflow

Posted on 2008-10-20
5
751 Views
Last Modified: 2012-06-22
I have an Infopath 2007 form running on MOSS 2007 with Infopath Form Services using a custom workflow. I am looking to do two things:

1. Our expense reporting process allows for an administrative assistant to submit expense reports for executives. However, ithe executvie then has no permissions to view or edit the item. After an expense report is submitted, I need to allow the executive view/edit permissions to the item (the admin who submitted it already has permissions). The field that tracks who submitted the form is SubmittedBy and the field that tracks who the report is for is EmployeeName.

2. Once the approval process is completed, a field called Processing Status displays "Completed". Once that status is changed to completed, I need the entire form to become read only, so that no further changes can be made to it.

Thanks in advance.


MFI-Expense-Report-Approval.txt
0
Comment
Question by:Ritchie Scott
  • 2
  • 2
5 Comments
 
LVL 25

Accepted Solution

by:
Robbie_Leggett earned 125 total points
Comment Utility
Install the SPD Workflow actions from this link:
 
http://www.codeplex.com/SPDActivities
 
You can then add a clause into the initial workflow, which grants a specific user permission on the specific item.
 
:-)
0
 

Author Comment

by:Ritchie Scott
Comment Utility
This is great for my first question. Thanks for the link. Any ideas on the second part?
0
 
LVL 6

Expert Comment

by:Andornagy
Comment Utility
There is a "Delete List Item Permission Assigment" Activity in above CodePlex Activities. Multiple workflow can be assigned to one item (run on modifed).
0
 

Author Comment

by:Ritchie Scott
Comment Utility
Still looking for the second part of the question.
0
 
LVL 6

Assisted Solution

by:Andornagy
Andornagy earned 125 total points
Comment Utility
Add to your workflow:
When field Processing Status is Completed "Delete List Item Permission Assigment" to all granted permissions expect the read one.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now