SharePoint 2013 SPD workflow - Update statement

Sherazad Ahmed 51 Reputation points
2024-11-07T16:08:32.4166667+00:00

Hello,

I have a SharePoint 2013 SPD workflow which is tied to a requests list. At some point a task gets assigned to an approver. I am trying to use the update statement right after to update the "country" field on the task list from the value in the requests list. However, it's not working. Would someone be able to tell me what I am doing wrong? I have included an image of my update statement.

SharePoint Workflow
SharePoint Workflow
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Workflow: An orchestrated and repeatable pattern of business activity, enabling data transformation, service provision, and information retrieval.
613 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sherazad Ahmed 51 Reputation points
    2024-11-13T14:04:15.76+00:00

    Hi Raytheon,

    It looks like I won't be able to update the task on the workflow as the workflow will await a response for the task before it continues. By then it'll be too late for the information I require. So I am pursuing another avenue of updating the country field via the server side code.

    Thank you for responding.

    regards,

    Sherazad.

    0 comments No comments

  2. RaytheonXie_MSFT 37,151 Reputation points Microsoft Vendor
    2024-11-19T01:20:03.33+00:00

    Hi @Sherazad Ahmed,

    I would recommend you to use event receivers to update the the "country" field when assaign the task.

    Here is the document for more details

    https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/event-receiver-and-list-event-receiver-sharepoint-add-in

    https://learn.microsoft.com/en-us/visualstudio/sharepoint/how-to-create-an-event-receiver?view=vs-2022&tabs=csharp


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.