0

I have got a 2013 workflow (developped with Visual Studio 2012) on a document library. It starts when a new document is created.

How can I get the document title to use it in my workflow?

Thanks for your help

0

You need to use the LookupSPListItem and GetDynamicValueProperties actions to retrieve list item values.

  1. Add the LookupSPListItem action to your sequence.

  2. In the LookupSPListItem action, specify currentitem and currentlist for your item/list values.

  3. Click the Get Properties link to generate a GetDynamicValueProperties action.

  4. Specify the source as list item of your list. Then specify the values you wish to retrieve (Title, in your case), as well as the variables to store the values in.

You can find visuals and more details here.

  • Thanks for your response but it's exactly what I've done. And title is empty. Maybe because the list use content type? – miniil Sep 16 '14 at 11:50
  • Do a REST query on your library. With the info returned, get the internal name of the field containing the value you need, and use that. – wjervis Sep 16 '14 at 11:55
  • Can you explain me REST query and how to do this on workflow? Thx – miniil Sep 16 '14 at 11:59
  • It wouldn't be done in a workflow. Just enter the following in your web browser: <site>/_api/web/lists/getbytitle('<yourlibrary>')/Items. If using IE, you may need to disable feed reading – wjervis Sep 16 '14 at 12:02
  • Sorry, but I don't understand because I need to get the title in my workflow to use it (for example send an email with the title). – miniil Sep 16 '14 at 12:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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