<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Workflows for Product Catalogs</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/workflows_for_product_catalogs/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/workflows_for_product_catalogs/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:54:08 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Post Product Catalog data on Facebook using workflows</title>
      <link>https://docs.microsoft.com/archive/blogs/workflows_for_product_catalogs/post-product-catalog-data-on-facebook-using-workflows</link>
      <pubDate>Fri, 02 Nov 2012 08:04:00 GMT</pubDate>
      <dc:creator><![CDATA[Anders Fagerhaug (PM)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/workflows_for_product_catalogs/2012/11/02/post-product-catalog-data-on-facebook-using-workflows/</guid>
      <description><![CDATA[This is the&nbsp;third Blog post in the BLOG describing how to use workflows in conjunction with a...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;"><span style="font-family: Calibri;">This is the&nbsp;third Blog post in the BLOG describing how to use workflows in conjunction with a product catalog.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Using social media to distribute product news is an effective way of marketing your product. All people LIKE&rsquo;ing a facebook page automatically get news updates from it. Having an automated way of fetching data from a product catalog and placing notes on a facebook wall, could be a neat thing to do. Let&rsquo;s assume we have this scenario: A company, ContosoElectronicsSuperstore, has a product catalog in SharePoint, with a public facing web site to display their products. In addition to this, the company has a facebook page called ContosoSocial. This FB page is LIKE&rsquo;d by thousands of fans. When the business manager of ContosoElectronicsSuperstore is changing the price on an item to be lower than its regular price, a note is automatically placed on the ContosoSocial facebook page, traversing out to all that LIKE&rsquo;s this FB page. This will effectively bring product information out to a large number of potential customers. The FB note contains the following information; Title, Item description, price, company logo and a link back to the public facing web site where the customers can view all the products.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">In this blog I will show you how to use workflows to fetch data from a product catalog and paste it on the wall on a facebook page. I will show you how to make this workflow trigger automatically every time an item is edited, and how to post a note on facebook every time the price is lower than the regular price.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">I will go through the following in this blog:</span></span></p>
<ol>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Creating and running the workflow</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">How&nbsp; to obtain an access_token for facebook.</span></span></li>
</ol>
<p><span style="font-family: Calibri; font-size: small;">&nbsp;</span></p>
<p><strong><span style="font-size: small;"><span style="font-family: Calibri;">Prerequisites:</span></span></strong></p>
<ol>
<li><span style="font-size: small;"><span style="font-family: Calibri;">A product catalog is set up in a SharePoint installation</span></span></li>
</ol>
<p><span style="font-size: small;"><span style="font-family: Calibri;">For this example I have created a product catalog called <strong>UncategorizedList_000</strong>. Sorry about the long and meaningless catalog name. It contains many list columns, but those of interest are: RetPrice, RetAdjustPprice, Title and Retdescription.</span></span></p>
<ol>
<li><span style="font-size: small;"><span style="font-family: Calibri;">SharePoint Designer (SPD) installed and coupled to the Site Collection containing the product catalog.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">A facebook page has to be created.</span></span></li>
</ol>
<p><span style="font-size: small;"><span style="font-family: Calibri;">In this example the page is called ContosoSocial</span></span></p>
<ol>
<li><span style="font-size: small;"><span style="font-family: Calibri;">A facebook app has to be created and added to the FB page in point 3.</span></span></li>
</ol>
<p><span style="font-size: small;"><span style="font-family: Calibri;">You create this to get an access_token.</span></span></p>
<h2><span style="font-size: medium;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">Creating the workflow </span></span></span></h2>
<p><span style="font-size: small;"><span style="font-family: Calibri;">We need to create a workflow that:</span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Is started automatically when an item is edited, and the price is changed to a lower value</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Fetch item information from the product catalog using lookups</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Place an automatically created message onto facebook.</span></span>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">The note has to be unique for every item.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">The message shall contain info like title, price, description, image and link back to the ContosoElectronicsSuperstore web site.</span></span></li>
</ul>
</li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;">And this is how I created the workflow in SharePoint Designer:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0121.Image1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0121.Image1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0121.Image1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0121.Image1.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">I have named this workflow <strong>Facebook Publishing Demo</strong>. It is of type <strong>Reusable workflow</strong>.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Let me walk you through the workflow steps.</span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">It is always nice to start the workflow with a <strong>log message</strong>. Makes it easier to troubleshoot later. </span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">The <strong>IF statement</strong> shall detect whether the new price (RetAdjustprice) is lower than the regular price (RetPrice). </span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The IF statement is picked from the <strong>Condition tab</strong> in SPD.&nbsp; It&rsquo;s called: <strong>IF any value equals any value.</strong> Other options than <strong>Equals</strong> are available, just click on <strong>Equals</strong> and a drop down menu will appear.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3441.Image2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3441.Image2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3441.Image2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3441.Image2.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Setting the <strong>Value: </strong>RetAdjustPrice is the displayed price, while RetPrice is the regular price of an item. When selecting <strong>Data Source</strong> I choose the product catalog name itself (<strong>UncategorizedList_000</strong>), instead of <strong>Current Item</strong>. By doing this you are sure to get access to the list columns for the product catalog. When looking up the catalog directly this way, you will have to specify the <strong>Find list Item,</strong> by setting the <strong>Field=GUID</strong> and <strong>Value</strong>=<strong>Current Item:GUID</strong>, in order to fetch the right item data from the product catalog<strong>. </strong>This will enable the workflow to retrieve data from the same item in the product catalog that triggered this workflow. I do the item lookup like this:</span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1641.Image3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1641.Image3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1641.Image3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1641.Image3.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">I&rsquo;ve added a log message for each of the IF outcomes, to easily troubleshoot the workflow later.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Then I&rsquo;ve chosen to build up a dictionary, containing the <strong>access_token</strong> needed to communicate with facebook, and the <strong>message</strong> to be sent to facebook. Creating the dictionary may be overkill, as we extract the info into local workflow variables later. </span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;">This is how we set up the dictionary:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3240.Image4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3240.Image4.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3240.Image4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3240.Image4.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The <strong>AccessToken</strong> is just a long string of characters. I will come back to how to create this later in this blog.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The <strong>Message</strong> is created using the String Builder:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/6521.Image5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/6521.Image5.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/6521.Image5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/6521.Image5.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">I do several item lookups here, using the same method as described earlier in this blog.</span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Then I create 2 local workflow variables; <strong>ACCESSTOKEN </strong>and <strong>MESSAGE</strong>, with input from the dictionary. These variables will be fed into the http POST call action later.</span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The reason for this is that I&rsquo;m not allowed to do dictionary lookups directly inside the http POST call action coming up next.</span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;"><strong>The http POST call.</strong> </span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;">This is the heart of this workflow.&nbsp; The <strong>action</strong> &nbsp;(in SPD) to use is called <strong>Call http web service</strong>. You only need to specify the &ldquo;<strong>This</strong>&rdquo; part.<strong> </strong>&nbsp;You do not need to specify anything for <strong>request, response </strong>or <strong>responseheaders.</strong></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The <strong>http method</strong> is to be set to <strong>HTTP POST</strong>. </span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0310.Image6.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0310.Image6.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0310.Image6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0310.Image6.png" alt="" border="0" /></a></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Use the String Builder to build up the URL:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1362.Image7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1362.Image7.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1362.Image7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1362.Image7.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Let me guide you through the details:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong>The https address</strong> is the address to the facebook API for the contososocial page.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong>Access_token: </strong>This is the authentication key you need, to get access to the FB page.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong>Message</strong>: Specifies what you want to display on FB.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong>Caption:</strong> Text to the picture</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong>Picture:</strong> Link to a company logo that I would like to follow the message on FB.</span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Then another log message is added if the ELSE statement is used instead.</span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;">When done, click <strong>Publish</strong> to save the workflow and deploy it to SharePoint.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">We are now done with the creation part of the workflow. </span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Since the SPD designer is coupled to the Site Collection containing the product catalog, the workflow is deployed correctly into the right Site Collection. And since I&rsquo;ve been using a <strong>reusable workflow</strong> I will have to add it manually to the product catalog.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">In the correct Site Collection navigate to the <strong>product catalog</strong>, activate the <strong>LIST ribbon</strong>, click on <strong>Workflow settings =&gt; Add workflow. </strong>&nbsp;Select the workflow just created, give it a proper name, select start option: <strong>Changing an item will start this workflow,</strong> and click <strong>NEXT.</strong></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5672.Image8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5672.Image8.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5672.Image8.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5672.Image8.png" alt="" border="0" /></a></strong></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The workflow is now activated for the product catalog, and ready to run.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">To run it; <strong>navigate</strong> to the product catalog, <strong>select</strong> an item, <strong>activate the ITEMS ribbon</strong>, and click on <strong>Edit.</strong> Change the RetAdjustprice to a lower value than RetPrice and click <strong>Save</strong>.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/2664.Image9.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/2664.Image9.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/2664.Image9.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/2664.Image9.png" alt="" border="0" /></a></strong></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Editing the item will kickstart the workflow. The workflow will compare the RetAdjustPrice against RetPrice: In this case the former is lower than the latter, and the http call will be sent to facebook.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">I can then navigate to the facebook page contososocial to observe the end result.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/6765.Image10.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/6765.Image10.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/6765.Image10.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/6765.Image10.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Note: All item details,&nbsp; company name, facebook page, and web address in this example are fake and only for illustration purposes.</span></span></p>
<h2><span style="font-size: medium;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">How to obtain an access_token from facebook</span></span></span></h2>
<p>&nbsp;</p>
<p><span style="font-family: Calibri; font-size: small;">In order to place a note on a facebook page, you need to authenticate the message being sent to facebook. I will show you how to obtain an access_token which are valid for 2 months. The idea is to create an App that is associated with/added to a FB page. In that process the owner of the page will accept the permissions required by that App. If permissions are set to publish_stream the App will have access to put notes on the wall for that FB page. Using the App credentials, you can create a user access_token which will be used by the workflow to put the note on FB. Details around how to create FB pages, Apps, authentication, etc can be found at: </span><a href="https://developers.facebook.com/docs/guides/canvas/"><span style="color: #0000ff; font-family: Calibri; font-size: small;">https://developers.facebook.com/docs/guides/canvas/</span></a></p>
<p>&nbsp;</p>
<ol>
<li><span style="font-size: small;"><span style="font-family: Calibri;">In facebook.com create a page for your company. In my example I&rsquo;ve used ContosoSocial.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Create a Facebook app at</span> </span><a href="https://developers.facebook.com/apps"><span style="color: #0000ff; font-size: small;">https://developers.facebook.com/apps</span></a></li>
</ol>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The app is created just to get a <strong>user access_token</strong>.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Be sure to add <strong>publish_stream</strong> as an extended permission. </span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5314.Image11.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5314.Image11.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5314.Image11.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5314.Image11.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<ol>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Add the app to the page you want the workflow to post notes to (in my example contososocial). Navigating to</span> &ldquo;</span><a href="https://www.facebook.com/add.php?api_key=%7badd%20your%20app's%20api_key%20here%7d&amp;pages"><span style="color: #0000ff; font-size: small;">https://www.facebook.com/add.php?api_key={add your app&rsquo;s api_key here}&amp;pages</span></a><span style="font-size: small;">&rdquo; <span style="font-family: Calibri;">will allow you to choose your page to add the app to.</span> </span></li>
<li><span style="font-family: Calibri; font-size: small;">Using the app&rsquo;s identity, look up user access token for the App you just created. This can be done using </span><a href="https://developers.facebook.com/tools/explorer/"><span style="color: #0000ff; font-size: small;">Facebook Graph API Explorer</span></a><span style="font-size: small;"> <span style="font-family: Calibri;">tool. Note:This access_token will only be valid for a couple of hours.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Extend the user access token by using this URL:</span></span></li>
</ol>
<p>&nbsp;</p>
<p><em><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&amp;client_id=APP_ID&amp;client_secret=APP_SECRET&amp;fb_exchange_token=SHORT_LIVED_ACCESS_TOKEN">https://graph.facebook.com/oauth/access_token?grant_type=fb_exchange_token&amp;client_id=APP_ID&amp;client_secret=APP_SECRET&amp;fb_exchange_token=SHORT_LIVED_ACCESS_TOKEN</a></span></span></em></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">This URL will return a <strong>long lived access_token</strong>. It will be valid <strong>for 2 months</strong>.&nbsp;&nbsp;</span></span></p>
<p><span style="font-family: Calibri; font-size: small;">For verifying the access_token use this debugger: </span><a href="https://developers.facebook.com/tools/debug"><span style="color: #0000ff; font-family: Calibri; font-size: small;">https://developers.facebook.com/tools/debug</span></a></p>
<p>&nbsp;</p>
<p><strong><span style="font-size: small;"><span style="font-family: Calibri;">Use the long lived access_token in your workflow.</span></span></strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Deploying a workflow on a different server in SharePoint 2013</title>
      <link>https://docs.microsoft.com/archive/blogs/workflows_for_product_catalogs/deploying-a-workflow-on-a-different-server-in-sharepoint-2013</link>
      <pubDate>Fri, 02 Nov 2012 07:44:00 GMT</pubDate>
      <dc:creator><![CDATA[Anders Fagerhaug (PM)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/workflows_for_product_catalogs/2012/11/02/deploying-a-workflow-on-a-different-server-in-sharepoint-2013/</guid>
      <description><![CDATA[This is the&nbsp;second Blog post in the BLOG describing how to use workflows&nbsp;together with a...]]></description>
      <content:encoded><![CDATA[<p><span style="font-size: small;"><span style="font-family: Calibri;">This is the&nbsp;second Blog post in the BLOG describing how to use workflows&nbsp;together with a product catalog.<br /></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">This blog post will describe how to move a workflow from one environment over to another. This is resolved by exporting the workflow as a template in one environment, and importing the workflow as a solution in the other environment. Such a move is highly useful in the scenarios where workflows are created in a test environment and moved over to a production environment when&nbsp;it's finished. In this example I will be using workflows together with a Products list in a Product catalog site collection</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The setup is as follows:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4540.Image1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4540.Image1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4540.Image1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4540.Image1.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The <strong>Test server</strong> and <strong>Prod server</strong> are identical with the exception of having the SPD installed on the Test server. </span></span></p>
<h2><span style="font-size: medium;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">Prerequisites:</span></span></span></h2>
<ul>
<li>&nbsp;<span style="font-size: small;"><span style="font-family: Calibri;">It is important that the &nbsp;list columns are named the same in both environments, or your workflow will have problems doing lookups from the product catalog.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Only workflows of type &laquo;reusable workflow&raquo; can be exported and used in other environments.</span></span></li>
</ul>
<h2><span style="font-size: medium;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">Blog post content:</span></span></span></h2>
<p>&nbsp;<span style="font-size: small;"><span style="font-family: Calibri;">I&rsquo;m going to show you the following:</span></span></p>
<ol>
<li><span style="font-size: small;"><span style="font-family: Calibri;">How to create a reusable workflow.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">How to create a SharePoint solution package that contains the reusable workflow.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">How to deploy a SharePoint solution package on a server </span></span></li>
</ol>
<p>&nbsp;&nbsp;</p>
<h1><span style="color: #365f91;"><span style="font-family: Cambria;">How to create a reusable workflow.</span></span></h1>
<p><span style="font-size: small;"><span style="font-family: Times New Roman;"><strong>On your test server:<br /></strong></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Open SharePoint Designer and connect it to the site collection containing your Products list.<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;"><strong>Then create a workflow by clicking on <strong>Workflows </strong>and <strong>Reusable Workflow. </strong>Give the workflow a name and click <strong>OK.</strong></strong></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3603.Image2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3603.Image2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3603.Image2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3603.Image2.png" alt="" border="0" /></a></strong></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">You can now start adding workflow steps to this workflow. See my previous blog post <strong><a href="https://blogs.msdn.com/b/workflows_for_product_catalogs/archive/2012/11/02/create-a-simple-workflow-that-reads-from-and-writes-to-a-product-catalog.aspx"><span style="color: #0000ff;">Create a simple workflow in SharePoint Designer that reads from, and writes to the Products list in SharePoint 2013</span></a></strong>&nbsp; for details on how to do this. <br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">That workflow reads the <strong>Title</strong> column from the Products list, modifies it, and writes it back to the Products list. </span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5684.Image3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5684.Image3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5684.Image3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5684.Image3.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<h1><span style="color: #365f91;"><span style="font-family: Cambria;">How to create a SharePoint solution package that contains the reusable workflow. </span></span></h1>
<p><span style="font-size: small;"><span style="font-family: Calibri;">In order to use this workflow on another server, you have to save this workflow as a <strong>SharePoint solution package</strong> (.wsp file), and then deploy it as a solution in the other server (Prod server).<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">To save the workflow in a .wsp format, click on <strong>Save as a template. </strong>This is only possible for workflows of type <strong>Reusable Workflow</strong>.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4606.Image4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4606.Image4.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4606.Image4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4606.Image4.png" alt="" border="0" /></a></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The .wsp file is now located in the <strong>Site Asset </strong>library in the <strong>Site Collection</strong> on your <strong>Test Server</strong>.<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Go to <strong>Site Content =&gt; Site Assets</strong> and you will find your .wsp file.<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Download a copy of this file to a directory on your computer.</span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/8306.Image6.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/8306.Image6.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/8306.Image6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/8306.Image6.png" alt="" border="0" /></a></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">You now have a SharePoint Solution package file (.wsp) that you can deploy on the production server.</span></span></p>
<h2>&nbsp;</h2>
<h1><span style="color: #365f91;"><span style="font-family: Cambria;">How to deploy a SharePoint solution package on a server </span></span></h1>
<p><strong><span style="font-size: small;"><span style="font-family: Calibri;">On your Production server:</span></span></strong></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Copy the .wsp file from your computer to a local directory on your Prod server.<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">In the Site Collection containing your Products list go to <strong>Site Settings =&gt; Solutions</strong>.</span></span></p>
<p><strong></strong>&nbsp;&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/2158.Image7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/2158.Image7.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/2158.Image7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/300x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/2158.Image7.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;<span style="font-size: small;"><span style="font-family: Calibri;"><strong>Upload</strong> the .wsp file, and <strong>activate</strong> it.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4300.Image8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4300.Image8.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4300.Image8.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4300.Image8.png" alt="" border="0" /></a></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4784.Image9.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4784.Image9.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4784.Image9.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4784.Image9.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;<span style="font-size: small;"><span style="font-family: Calibri;">Go to <strong>Site settings =&gt; Manage Site features, </strong>and <strong>activate</strong> the workflow as a feature.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1072.Image10.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1072.Image10.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1072.Image10.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1072.Image10.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Then go to your&nbsp;<strong>Products list&nbsp;</strong>=&gt; <strong>LIST ribbon</strong> =&gt; <strong>Workflow settings</strong> =&gt; <strong>Add a workflow.</strong></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1157.Image11.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1157.Image11.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1157.Image11.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1157.Image11.png" alt="" border="0" /></a></strong></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">On the <strong>Add a Workflow</strong> page, from the list in <strong>Select a workflow template,</strong> select your workflow.<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Give it a name and click <strong>Next</strong>.</span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/7002.Image12.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/7002.Image12.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/7002.Image12.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/7002.Image12.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The workflow is now listed among workflows to be used for this Products list.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0068.Image13.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0068.Image13.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0068.Image13.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0068.Image13.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The workflow can now be used.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">To start the workflow, <strong>select an item</strong> in the Products list, activate the <strong>ITEMS ribbon</strong>, and select <strong>Workflows</strong>. </span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0020.Image14.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0020.Image14.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0020.Image14.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0020.Image14.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">In the<strong> workflow page</strong> click on the workflow name to start the workflow. <br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">To verify that this workflow has been run, return to the <strong>workflow page</strong> by selecting the same item, activating the <strong>ITEMS </strong>ribbon and selecting the <strong>Workflows </strong>button.<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">The workflow will be listed either under <strong>Running Workflows</strong> or <strong>Completed workflows</strong>.<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">Click on the instance of the workflow to see log details. The workflow has ended when it is in the <strong>Completed workflows</strong> section.<br /></span></span><span style="font-size: small;"><span style="font-family: Calibri;">To view the final result, go back to the Products list and verify that the<strong> </strong>value in the site column <strong>Title </strong>has changed.</span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/7522.Image15.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/7522.Image15.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/7522.Image15.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/350x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/7522.Image15.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Create a simple workflow in SharePoint Designer that reads from, and writes to the Products list in SharePoint 2013.</title>
      <link>https://docs.microsoft.com/archive/blogs/workflows_for_product_catalogs/create-a-simple-workflow-in-sharepoint-designer-that-reads-from-and-writes-to-the-products-list-in-sharepoint-2013</link>
      <pubDate>Fri, 02 Nov 2012 07:15:00 GMT</pubDate>
      <dc:creator><![CDATA[Anders Fagerhaug (PM)]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/workflows_for_product_catalogs/2012/11/02/create-a-simple-workflow-in-sharepoint-designer-that-reads-from-and-writes-to-the-products-list-in-sharepoint-2013/</guid>
      <description><![CDATA[&nbsp;
This is the first in a series of blog posts describing how to use workflows together with...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">This is the first in a series of blog posts describing how to use workflows together with the Products list in a Product catalog site collection. The purpose of this example is to show you how you can&nbsp; communicate with a list in SharePoint, and&nbsp;by this&nbsp;give you a building block when creating your own workflows.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">In this blog post I will show you step-by-step how to create a simple workflow that will read content from a site column, modify the content, and then write the modified content back to the site column. More precisely, I will read the <strong>Title</strong> of an item, add the words &ldquo;<strong>New Item !!!</strong>&rdquo; to it, and write the modified name back into the Products list for this item. (&ldquo;<strong>Laptop 14.4W&rdquo; =&gt; &ldquo;New Item !!! Laptop 14.4W&rdquo;)</strong></span></span></p>
<h2><span style="font-size: medium;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">&nbsp;Prerequisites: </span></span></span></h2>
<p>&nbsp;</p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Workflow Manager Client 1.0 &nbsp;installed and connected to the SharePoint installation</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">A Product catalog site collection has been created. In the Products list, you must have at least one item, where the site column "Title" contains some content. </span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">SharePoint Designer (SPD) is installed.</span></span></li>
</ul>
<h2><span style="font-size: medium;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">Create a workflow in SPD:</span></span></span></h2>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Start by opening SPD and mapping it to the Product catalog site collection. From the <strong>Sites</strong> menu, click <strong>Open Site,</strong> and then insert the address of the <strong>Site Collection</strong>. </span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/8688.image1.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/8688.image1.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/8688.image1.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/8688.image1.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">&nbsp;When entering SPD at a later time, your site collection will be listed under <strong>Recent Sites</strong>.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4212.image2.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4212.image2.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4212.image2.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4212.image2.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Tip: SPD can also be started from within SharePoint. To do this in the Products list, in the <strong>LIST ribbon</strong>=&gt;<strong>Workflow settings</strong>=&gt; click the arrow and select &ldquo;<strong>Create a workflow in SharePoint designer</strong>&rdquo; from the list. SPD is then automatically mapped to the correct site collection.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0272.image22.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0272.image22.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0272.image22.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/300x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0272.image22.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>After having mapped SPD to your site collection, the next step is to create a workflow that is associated with the Products list. To do this, click <strong>Workflows</strong> in the <strong>Site objects list</strong> to get the right ribbon, then<strong> </strong>&ldquo;List workflow&rdquo;.</p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1882.image3.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1882.image3.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1882.image3.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1882.image3.png" alt="" border="0" /></a></span></span></p>
<p>&nbsp;</p>
<p>Select the appropriate <strong>List</strong>, in this case &ldquo;<strong>Products</strong>&rdquo;.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4762.image4.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4762.image4.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4762.image4.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/200x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4762.image4.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Type a suitable name for your workflow and click <strong>OK</strong>.</span></span></p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/6204.image5.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/6204.image5.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/6204.image5.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/6204.image5.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">You now have an empty workflow, ready to be filled with workflow steps.</span></span></p>
<p><span style="font-family: Calibri; font-size: small;">&nbsp;</span></p>
<h3><span style="font-size: small;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">Develop the workflow</span></span></span></h3>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The workflow is created declarative; hence no programming is needed when using the SharePoint Designer.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The final workflow will look like this.</span></span></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5861.image6.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5861.image6.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5861.image6.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5861.image6.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Let me guide you through the different steps.</span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Line 1: It is always nice to start with a log message. This makes Troubleshooting later much easier. Use the <strong>Log to history list</strong> action.</span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Line 2: Reading from the product catalog is achieved with the <strong>Set workflow variable</strong> action.</span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Create your own workflow variable of type String, and do a Lookup for the value in the list column Title in the product catalog. Creating this variable is just to show you that I&rsquo;m able to fetch data from the product catalog. Since SPD is already mapped to your Site collection, &ldquo;current item&rdquo; will present all site columns in the &ldquo;Field from source&rdquo; drop down window.</span></span></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3426.image7.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3426.image7.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3426.image7.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3426.image7.png" alt="" width="241" height="104" border="0" /></a></p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0045.image8.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0045.image8.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0045.image8.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/300x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0045.image8.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Line 3: Logging &ldquo;MyTitle&rdquo; is just to be able to verify (in the logs later) that we have picked up the right data. </span></span></li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Line 4: Then create a new variable (MyTitle2) of type string. Use the <strong>Set workflow variable</strong> action again. Under <strong>Value </strong>use the String Builder to modify the title. In my example I have added some text to the content in the <strong>MyTitle</strong> variable. Use the &ldquo;Add or Change Lookup&rdquo; button to enter the &ldquo;Lookup for String&rdquo; UI as shown in step 2.</span></span></li>
</ul>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5428.image9.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5428.image9.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/5428.image9.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/5428.image9.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p>You now have a workflow variable (MyTitle2) containing your new modified title.</p>
<p>&nbsp;</p>
<ul>
<li>Line5: Write back to the product catalog by using the <strong>Set Field in current item</strong> action.</li>
</ul>
<p style="padding-left: 30px;">This time the <strong>field</strong> is a lookup for Site column (<strong>Current item:Title)</strong>, and the <strong>value</strong> is the <strong>Workflow Variable and Parameters: MyTitle2.</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1452.image10.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1452.image10.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/1452.image10.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/300x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/1452.image10.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<ul>
<li>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Line 6: All workflows must end with this Go-to statement.</span></span></p>
</li>
<li><span style="font-size: small;"><span style="font-family: Calibri;">You can check for workflow errors by clicking on &ldquo;<strong>Check for errors</strong>&rdquo;. This feature will only remind you of major mistakes, like not setting a value for a variable. Don&rsquo;t be surprised if the workflow doesn&rsquo;t work for other reasons.</span></span></li>
</ul>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3264.image11.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3264.image11.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3264.image11.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3264.image11.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<ul>
<li>
<p><span style="font-size: small;"><span style="font-family: Calibri;">To keep your workflow, click on <strong>Save.</strong> The workflow is stored but not activated.</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">The workflow is now done. </span></span></p>
<h1><span style="color: #365f91;"><span style="font-family: Cambria;">How to deploy and activate the workflow for the Products list</span></span></h1>
<p><span style="font-family: Calibri; font-size: small;">&nbsp;</span></p>
</li>
<li><span style="font-size: small;"><span style="font-family: Calibri;"><strong>Publishing the workflow</strong> will deploy it to the SharePoint installation and activated it for the list that you associated the workflow with, in this case, the Products list. &nbsp;To publish your newly created workflow, click <strong>Publish.</strong></span></span></li>
</ul>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3124.image12.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3124.image12.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3124.image12.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3124.image12.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">To verify that your workflow is deployed and activated for the Products list do the following:</span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">In SharePoint, in your Product catalog site collection, go to the Products list; activate the <strong>LIST ribbon =&gt; Workflow settings. </strong>The workflow will be listed under <strong>SharePoint 2013 workflows.</strong></span></span></p>
<p>&nbsp;</p>
<p>&nbsp;<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4885.image13.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4885.image13.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4885.image13.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/250x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4885.image13.png" alt="" border="0" /></a></p>
<p>&nbsp;</p>
<h2><span style="font-size: medium;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">Start the workflow</span></span></span></h2>
<p><span style="font-family: Calibri; font-size: small;">&nbsp;</span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Go to the Products list, select an <strong>item</strong>, activate the <strong>ITEMS ribbon</strong> and then click on <strong>Workflows</strong>. </span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3173.image15.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3173.image15.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/3173.image15.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/3173.image15.png" alt="" border="0" /></a></strong></span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Activate the workflow by clicking on its name.</span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/7433.image16.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/7433.image16.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/7433.image16.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/7433.image16.png" alt="" border="0" /></a></strong></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">After starting the workflow you will return to the product catalog UI.</span></span></p>
<p>&nbsp;</p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">To see the status of the workflow, return to the <strong>Workflow page</strong> as described in the previous step. <strong>Internal status</strong> will show the status of the workflow.</span></span></li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0601.image18.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0601.image18.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/0601.image18.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/0601.image18.png" alt="" border="0" /></a></strong></span></span></p>
<p><span style="font-size: small;"><span style="font-family: Calibri;">Note: The workflow has completed its task, and we can already see that the title has been modified to &ldquo;New Item !!! Adventure&hellip;.&rdquo; As planned.</span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">If you want see the <strong>logged status messages</strong> that you put in your workflow, click on the workflow name, and you will see the workflow details. This is useful during troubleshooting.</span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4263.image19.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4263.image19.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4263.image19.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4263.image19.png" alt="" border="0" /></a></strong></span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;"><strong>Verify the final result</strong> by going back to the product catalog and observe that the title of the appropriate item has changed.</span></span></li>
</ul>
<p>&nbsp;</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4111.image20.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4111.image20.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4111.image20.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4111.image20.png" alt="" border="0" /></a>&nbsp;</p>
<h2><span style="font-size: medium;"><span style="color: #4f81bd;"><span style="font-family: Cambria;">Other starting options:</span></span></span></h2>
<p><span style="font-size: small;"><span style="font-family: Calibri;">If you need to start the workflow automatically there are options for this as well.</span></span></p>
<ul>
<li><span style="font-size: small;"><span style="font-family: Calibri;">Go to the <strong>product catalog =&gt; LIST ribbon =&gt; Workflow settings</strong>: click on the workflow name. you will now be presented with the following starting options:</span></span></li>
</ul>
<p><span style="font-size: small;"><span style="font-family: Calibri;"><strong><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4617.image21.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4617.image21.png"><img src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/01/56/45/4617.image21.png" original-url="https://blogs.msdn.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-01-56-45/4617.image21.png" alt="" border="0" /></a></strong></span></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
  </channel>
</rss>