0

In SharePoint online, I created a declarative (designer) workflow on List A. The workflow is triggered on item created.

When a new item is created on List A, it creates new list item in List B.

Once the item gets created in List B, I'm trying to update the List A item.

But currently its's not working. Please suggest some workaround.

Latest workflowenter image description here screenshot:

5
  • first add logs , and find the error. Commented Oct 17, 2016 at 10:29
  • Workflow History is not showing any errors
    – cr1
    Commented Oct 17, 2016 at 10:39
  • Please correct me if my understanding is wrong. using List A workflow you are creating Item in List B, You want to get List B created item id in variable Commented Oct 17, 2016 at 10:44
  • Correct. i would like to update List A with the List B ID variable
    – cr1
    Commented Oct 17, 2016 at 10:45
  • please check Updated answer Commented Oct 17, 2016 at 11:28

1 Answer 1

0

There are some workaround for this

  • Create hidden custom column name ListAID in List B which save list A current item ID.
  • In declarative workflow create variable , like if List B item ListAID
    Column value is equal to List A item ID, then get List B ID column value in
    variable

please see below screen shot enter image description here

Here you need to use lookup

9
  • If you are adding Unique title, then no need to create ListAID column in List B, Just Replace ListAID with Title in Screen Shot. means compare List A title with List B Title then get ID of List B Item. keep me posted, if you need more details Commented Oct 17, 2016 at 11:44
  • I am using a unique name so i will use that. after the steps in your screenshot, in order to update list A with the List B ID do i need to add a Update List Item to the workflow?
    – cr1
    Commented Oct 17, 2016 at 12:03
  • No need to use action Update Item, instated of that you can user action Set field value Commented Oct 17, 2016 at 12:14
  • Hi, thanks for your assistence. I believe i have set my workflow as per your instructions however the result is still not occuring.
    – cr1
    Commented Oct 17, 2016 at 12:30
  • Can you Please add Screen shots of your workflow, so I can help you. Commented Oct 17, 2016 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.