<?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 Operations Hub - Custom Code - 2 portals sync in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Operations-Hub-Custom-Code-2-portals-sync/m-p/740502#M60247</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to make a synchronization between 2 portals.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Portal A (with Operations Pro)&lt;/LI&gt;&lt;LI&gt;Portal B (without Operations Pro)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I need to trigger a workflow with Custom Code from Portal A every day.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have to check for each Contact in Portal A, if it is in Portal B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Contact is in Portal B, then I have to import property values for this Contact from Portal B to Portal A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found some examples to draw on but I can't find the final solution.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://gist.github.com/jackcoldrick90/9d7301deb5c3ff42b24d40a3cda46686" target="_blank" rel="noopener"&gt;https://gist.github.com/jackcoldrick90/9d7301deb5c3ff42b24d40a3cda46686&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/HubSpot/sample-workflow-custom-code/blob/main/samples/sync_contact_to_other_portal.js" target="_blank" rel="noopener"&gt;https://github.com/HubSpot/sample-workflow-custom-code/blob/main/samples/sync_contact_to_other_portal.js&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Do you have any ideas, or are you in an agency that could do this custom code?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jan 2023 08:36:22 GMT</pubDate>
    <dc:creator>vinc</dc:creator>
    <dc:date>2023-01-12T08:36:22Z</dc:date>
    <item>
      <title>Operations Hub - Custom Code - 2 portals sync</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Operations-Hub-Custom-Code-2-portals-sync/m-p/740502#M60247</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to make a synchronization between 2 portals.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Portal A (with Operations Pro)&lt;/LI&gt;&lt;LI&gt;Portal B (without Operations Pro)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I need to trigger a workflow with Custom Code from Portal A every day.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I have to check for each Contact in Portal A, if it is in Portal B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the Contact is in Portal B, then I have to import property values for this Contact from Portal B to Portal A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have found some examples to draw on but I can't find the final solution.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://gist.github.com/jackcoldrick90/9d7301deb5c3ff42b24d40a3cda46686" target="_blank" rel="noopener"&gt;https://gist.github.com/jackcoldrick90/9d7301deb5c3ff42b24d40a3cda46686&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/HubSpot/sample-workflow-custom-code/blob/main/samples/sync_contact_to_other_portal.js" target="_blank" rel="noopener"&gt;https://github.com/HubSpot/sample-workflow-custom-code/blob/main/samples/sync_contact_to_other_portal.js&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;Do you have any ideas, or are you in an agency that could do this custom code?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 08:36:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Operations-Hub-Custom-Code-2-portals-sync/m-p/740502#M60247</guid>
      <dc:creator>vinc</dc:creator>
      <dc:date>2023-01-12T08:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Operations Hub - Custom Code - 2 portals sync</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Operations-Hub-Custom-Code-2-portals-sync/m-p/741173#M60295</link>
      <description>&lt;P class=""&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/503164"&gt;@vinc&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Very nice to e-meet you.&amp;nbsp; I am software engineer at Baskey specicallizing in the HubSpot platform and am more than happy to help.&lt;BR /&gt;&lt;BR /&gt;There is a couple of way you can acheive this but I think the workflow should operate as follows.&lt;BR /&gt;You can get a full list of contact names in Portal A and B using a List request through the custom code action.&lt;SPAN class=""&gt;&amp;nbsp; Then you can compare the names in the lists.&lt;SPAN class=""&gt;&amp;nbsp; This is to avoid making a Search API request for each individual contact.&lt;BR /&gt;If there is a match, you can then make a Search API request to Portal B to return the property values you need.&lt;SPAN class=""&gt;&amp;nbsp; Which you can then use to update Portal A Contact’s properties using an Update request.&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;We are an agency that can easily implement this so if you would like to contact us, you can by using my meetings link below.&lt;BR /&gt;&lt;A href="https://meetings.hubspot.com/pauric-mc-connell" target="_blank" rel="noopener"&gt;https://meetings.hubspot.com/pauric-mc-connell&lt;BR /&gt;&lt;BR /&gt;L&lt;/A&gt;ooking forward to hearing from you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;H3&gt;&lt;SPAN&gt;Pauric&lt;SPAN&gt;&amp;nbsp;&lt;SPAN&gt;Mc Connell&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H3&gt;&lt;P class=""&gt;&lt;SPAN&gt;Software Engineer&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN&gt;Baskey&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD width="30"&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="1"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="30"&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="30"&gt;&lt;TABLE width="210px" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="210.352px"&gt;&lt;TABLE width="198px" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="198.352px"&gt;&lt;TABLE width="186px" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="186.352px"&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;IMG border="0" width="13" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&lt;A class="" href="mailto:p.mcconnell@baskey.eu" target="_blank" rel="noopener"&gt;p.mcconnell@baskey.eu&lt;/A&gt;&lt;BR /&gt;&lt;A class="" href="https://www.baskey.eu" target="_blank" rel="noopener"&gt;www.baskey.eu&lt;/A&gt;&lt;BR /&gt;Rheingasse 14, 50676 Köln&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="186.352px"&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="30"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="1"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD height="30"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;IMG border="0" width="130" /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jan 2023 17:23:30 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Operations-Hub-Custom-Code-2-portals-sync/m-p/741173#M60295</guid>
      <dc:creator>PMcConnell</dc:creator>
      <dc:date>2023-01-13T17:23:30Z</dc:date>
    </item>
  </channel>
</rss>

