Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm with one problem setting up one email link to update automatically one column value in on list if clicked.

I have one workflow to approve some permission requests, where when one request is performed by one user, I save that request in one list with the status "Approved" or "Denied".

When this request is save in the list one email is sent to the approver, with two links - Approve - Deny

I need when the approver click in one link of the email the status is automatically changed in the list to "Approved" or "Denied".

I'm using this approach:

SPListItem li = workflowProperties.Item;

string sAcceptRequest = "Approve";

How can I change the value in the column I want?

Thanks

share|improve this question
    
Hi marinho, please could you update the question with a bit more code? –  spStacker Aug 28 '12 at 14:34
    
I'm constructing the link like this: string sAcceptRequest = "<a href=\"" + li.Web.Url + "/" + li.ParentList.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url + "?ID=" + li.ID.ToString() + "\">Approve</a>"; string sDenyRequest = "<a href=\"" + li.Web.Url + "/" + li.ParentList.Forms[PAGETYPE.PAGE_DISPLAYFORM].Url + "?ID=" + li.ID.ToString() + "\">Deny</a>"; –  marinho Aug 28 '12 at 14:54
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.