<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Updating MS Access Table with Values from BP Collection? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Updating-MS-Access-Table-with-Values-from-BP-Collection/m-p/65284#M17914</link>
    <description>Hi,

I'm wondering if it is possible to bulk update a field within a table in MS Access, using values from a field within a Collection in BP?
I'm also wondering how the Syntax for that looks.

I use the Action - Get Collection within the OLEDB objectÂ&amp;nbsp;to run a Select query to pull the information back.

Once a process has been ran and values in my collection are updated, I want to use this collection to update the Table in the DB.

For example-

Table1

ID / Owner/ Task ID/ Status

1 / JoeÂ&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; /45Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / PendingÂ&amp;nbsp;

2Â&amp;nbsp; / AlanÂ&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; /46Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Pending

3Â&amp;nbsp; / Mellisa/ 47Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Pending

Â&amp;nbsp;

BP Collection-

[Results]

ID / Owner/ Task ID/ Status

1 / JoeÂ&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; /45Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Successful

2Â&amp;nbsp; / AlanÂ&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; /46Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Exception

3Â&amp;nbsp; / Mellisa/ 47Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Successful

Â&amp;nbsp;

I want to update Table1's Status field with the values from [Results.Status]

Â&amp;nbsp;

For those that want some more Context.

The operation are going to be posting records onto a SharePoint, ready for the robot to data scrape and contact the customer, where possible.
I am unable to use any of the SharePoint APIs due to restrictions
I have created a Linked Table within MS Access that will update the SharePoint.</description>
    <pubDate>Fri, 10 May 2019 14:54:00 GMT</pubDate>
    <dc:creator>DeclanKeeton</dc:creator>
    <dc:date>2019-05-10T14:54:00Z</dc:date>
    <item>
      <title>Updating MS Access Table with Values from BP Collection?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-MS-Access-Table-with-Values-from-BP-Collection/m-p/65284#M17914</link>
      <description>Hi,

I'm wondering if it is possible to bulk update a field within a table in MS Access, using values from a field within a Collection in BP?
I'm also wondering how the Syntax for that looks.

I use the Action - Get Collection within the OLEDB objectÂ&amp;nbsp;to run a Select query to pull the information back.

Once a process has been ran and values in my collection are updated, I want to use this collection to update the Table in the DB.

For example-

Table1

ID / Owner/ Task ID/ Status

1 / JoeÂ&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; /45Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / PendingÂ&amp;nbsp;

2Â&amp;nbsp; / AlanÂ&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; /46Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Pending

3Â&amp;nbsp; / Mellisa/ 47Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Pending

Â&amp;nbsp;

BP Collection-

[Results]

ID / Owner/ Task ID/ Status

1 / JoeÂ&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; /45Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Successful

2Â&amp;nbsp; / AlanÂ&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; /46Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Exception

3Â&amp;nbsp; / Mellisa/ 47Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp;Â&amp;nbsp; / Successful

Â&amp;nbsp;

I want to update Table1's Status field with the values from [Results.Status]

Â&amp;nbsp;

For those that want some more Context.

The operation are going to be posting records onto a SharePoint, ready for the robot to data scrape and contact the customer, where possible.
I am unable to use any of the SharePoint APIs due to restrictions
I have created a Linked Table within MS Access that will update the SharePoint.</description>
      <pubDate>Fri, 10 May 2019 14:54:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-MS-Access-Table-with-Values-from-BP-Collection/m-p/65284#M17914</guid>
      <dc:creator>DeclanKeeton</dc:creator>
      <dc:date>2019-05-10T14:54:00Z</dc:date>
    </item>
    <item>
      <title>Google suggests using MSâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-MS-Access-Table-with-Values-from-BP-Collection/m-p/65285#M17915</link>
      <description>Google suggests using MS Data Access ObjectsÂ&amp;nbsp;
&lt;A href="https://stackoverflow.com/questions/7070011/writing-large-number-of-records-bulk-insert-to-access-in-net-c" target="test_blank"&gt;https://stackoverflow.com/questions/7070011/writing-large-number-of-records-bulk-insert-to-access-in-net-c&lt;/A&gt;
&lt;A href="https://docs.microsoft.com/en-us/office/client-developer/access/desktop-database-reference/dbengine-object-dao" target="test_blank"&gt;https://docs.microsoft.com/en-us/office/client-developer/access/desktop-database-reference/dbengine-object-dao&lt;/A&gt;</description>
      <pubDate>Fri, 10 May 2019 19:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-MS-Access-Table-with-Values-from-BP-Collection/m-p/65285#M17915</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2019-05-10T19:45:00Z</dc:date>
    </item>
    <item>
      <title>Hi John,
Â 
I think the levelâ€¦</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Updating-MS-Access-Table-with-Values-from-BP-Collection/m-p/65286#M17916</link>
      <description>Hi John,
Â&amp;nbsp;
I think the level of complexity with DAO is going to mean I won't have time due to my delivery date.
Â&amp;nbsp;
I don't have to deal with a large volume of records fortunately so for now I can just use a loop stage and reference the field in the collection as part of the SQL Query.
Â&amp;nbsp;
// For anybody reading this like me that struggled with how to piece the Syntax together, then it's actually really simple. Don't know why it seemed difficult to me.
Â&amp;nbsp;
The solution I've opted to go for is
Loop Start 
Calculation to Data Item [SQL Query]
"Â&amp;nbsp;UPDATE Test_Deck_Table
SET Status= ' "&amp;amp; [Results.Status]Â&amp;nbsp;
&amp;amp; "' WHERE ID = &amp;amp; [Results.ID]
Â&amp;nbsp;Action - Data.OLEDB - ExecuteÂ&amp;nbsp;
input- [SQL Query]
Calculation to data item [SQL QUERY]
""Â&amp;nbsp; (To reset the data item)
LOOP END
Â&amp;nbsp;
-Notice that when referencing Results.ID I didn't use quote marks as numerical value.
Â&amp;nbsp;
If I get the time to explore the DAO avenue discussed in the forum then I'll post back my results here.
If anybody has any experience of that then please share!</description>
      <pubDate>Mon, 13 May 2019 20:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Updating-MS-Access-Table-with-Values-from-BP-Collection/m-p/65286#M17916</guid>
      <dc:creator>DeclanKeeton</dc:creator>
      <dc:date>2019-05-13T20:25:00Z</dc:date>
    </item>
  </channel>
</rss>

