{"id":138344,"date":"2022-11-02T10:00:44","date_gmt":"2022-11-02T01:00:44","guid":{"rendered":"https:\/\/support.questetra.com\/tips\/workflow-trigger-code-202211\/send-purchase-order-tsv\/"},"modified":"2022-11-02T10:32:49","modified_gmt":"2022-11-02T01:32:49","slug":"send-purchase-order-tsv","status":"publish","type":"page","link":"https:\/\/support.questetra.com\/ja\/tips\/workflow-trigger-code-202211\/send-purchase-order-tsv\/","title":{"rendered":"Send Purchase Order TSV"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"..\/\"><i class=\"fas fa-folder-arrow-up\"><\/i> Workflow Trigger Code 202211<\/a><\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-1faffe2b\"><h3 class=\"uagb-heading-text\">DEMO<\/h3><\/div>\n\n\n\n<form id=\"send_po_tsv_trigger\">\n  <label for=\"qEmail\"><strong>Email Address \uff0f \u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9<\/strong>:<\/label><br>\n  <input  id=\"qEmail\" type=\"email\" name=\"q_Email\"\n    placeholder=\"you@example.com\" required size=\"32\" maxlength=\"64\"><br><br>\n  <label   for=\"qTsv\"><strong>Purchase Orders TSV \uff0f \u767a\u6ce8TSV<\/strong>:<\/label><br>\n  q_product &#8211;  q_quantity &#8211; q_price &#8211; (q_amount:calced)<br>\n  <textarea id=\"qTsv\" name=\"q_line_items\" rows=\"5\" cols=\"33\"><\/textarea>\n  <input id=\"qsubmit\" type=\"submit\" value=\"Submit \uff0f \u9001\u4fe1\">\n<\/form>\n<div id=\"send_po_tsv_log\">A few minutes after submitting, an order confirmation URL will be sent.<\/div>\n\n<script>\nconst strStartUrl   = \"https:\/\/bpm-us.questetra.net\/System\/Event\/MessageStart\/54\/0\/start\"; \/\/ \u2605\u2605\n\/\/const strStartUrl   = \"https:\/\/example.questetra.net\/System\/Event\/MessageStart\/99\/0\/start\"; \/\/ \u2605\u2605\nconst strKey        = \"GdixCgUffsvDBqnsOPPQUVgWtmwEbsjC\"; \/\/ \u2605\u2605See your workflow app\u2605\u2605\nconst strIdForm     = \"#send_po_tsv_trigger\";      \/\/ \u2605must be same as Trigger form id\u2605\nconst strIdLog      = \"#send_po_tsv_log\";          \/\/ \u2605must be same as Log div id\u2605\nconst strIdTextarea = \"#qTsv\";   \/\/ \u2605\nconst strIdEmail    = \"#qEmail\"; \/\/ \u2605\n\nconst elTriggerForm = document.querySelector ( strIdForm );\nconst elOutput      = document.querySelector ( strIdLog );\nconst elTextarea    = document.querySelector ( strIdTextarea );\nconst elEmail       = document.querySelector ( strIdEmail );\n\nelTextarea.addEventListener ( 'change', function(ev) { \/\/ Preview TSV in elOutput\n  \/\/let elOutput    = document.querySelector ( strIdLog );\n  let arr2dPo = parseAsRectangular( elTextarea.value );\n  let strTmpHtml    = \"\";\n  strTmpHtml       += \"Entered TSV preview  (\" + arr2dPo[0].length + \" cols  \" + arr2dPo.length + \" rows)<br>\";\n  strTmpHtml       += \"<table>\";\n  for( let i = 0; i < arr2dPo.length; i++ ){\n    strTmpHtml     += \"<tr>\";\n    for( let j = 0; j < arr2dPo[i].length; j++ ){\n      strTmpHtml   += \"<td style='padding:0px 2px'>\" + encodeHTML( arr2dPo[i][j] ) + \"<\/td>\";\n    }\n    strTmpHtml     += \"<\/tr>\";\n  }\n  strTmpHtml       += \"<\/table>\";\n  elOutput.innerHTML = strTmpHtml;\n}, false);\n\nelTriggerForm.addEventListener ( 'submit', function(ev) {\n  ev.preventDefault();\n  \/\/let elOutput    = document.querySelector( strIdLog );\n  let arr2dPo = parseAsRectangular( elTextarea.value );\n  let strQtableXml  = \"\";\n  strQtableXml     += \"<list>\";\n  for( let i = 0; i < arr2dPo.length; i++ ){\n    strQtableXml   += \"<row>\";\n    for( let j = 0; j < arr2dPo[i].length; j++ ){\n      strQtableXml += \"<col>\" + encodeHTML( arr2dPo[i][j] ) + \"<\/col>\";\n    }\n    strQtableXml   += \"<\/row>\";\n  }\n  strQtableXml     += \"<\/list>\";\n\n  let objFormData   = new FormData();\n  objFormData.append ( 'q_Email'     , elEmail.value ); \/\/ \u2605\n  objFormData.append ( 'q_line_items', strQtableXml  ); \/\/ \u2605\n  objFormData.append ( 'key', strKey );\n\n  elOutput.innerHTML = \"Uploading ...\";\n  fetch( strStartUrl, {\tmethod: 'POST', mode: 'cors', body: objFormData } ).then( response => {\n    console.log( 'response: ' + response.ok + \" \" + response.status + \" \" + response.statusText );\n      \/\/ https:\/\/developer.mozilla.org\/docs\/Web\/API\/Response\n    if ( !response.ok ) { throw new Error( \"response was not ok\" ); } \/\/ go \"catch\"\n    return response.text(); \/\/ QBPMS responces the string PID.\n  })\n  .then( (text) => {\n    elOutput.innerHTML = \"Accepted (ID: \" + text + \").\";\n  })\n  .catch( (error) => {\n    elOutput.innerHTML = error;\n  });\n}, false);\n\n\n\/\/\/\/\/\/ functions\n\/\/\/\/ Escape XML\/HTML\nfunction encodeHTML ( str ){\n  return str.replace(\/&\/g, '&amp;').replace(\/<\/g, '&lt;').replace(\/>\/g, '&gt;')\n            .replace(\/\"\/g, '&quot;').replace(\/'\/g, '&apos;');\n}\n\n\/\/\/\/ Parses TSV string as two-dimensional rectangular data matrix and creates a 2D array.\nfunction parseAsRectangular( strTsv ){\n  const arrTsv = strTsv.split(\"\\n\");\n  \/\/\/ Get numMinWidth and numMaxWidth (blank lines are excluded)\n  let numMinWidth   = Infinity; \/\/ cf. String-Type Max: 1 million\n  let numMaxWidth   = 0;\n  let numBlanklines = 0;\n  for( let i = 0; i < arrTsv.length; i++ ){\n    if( arrTsv[i] === \"\" ){ \/\/ Skip blank lines\n      numBlanklines += 1;\n      continue;\n    }\n    let arrCells = arrTsv[i].split(\"\\t\");\n    if( numMinWidth > arrCells.length ){ numMinWidth = arrCells.length; }\n    if( numMaxWidth < arrCells.length ){ numMaxWidth = arrCells.length; }\n  }\n  console.log( \" TsvDataCheck:\" + \" MinWidth:\" + numMinWidth + \" MaxWidth:\" + numMaxWidth +\n               \" Lines:\" + arrTsv.length + \" (BlankLines:\" + numBlanklines + \")\" );\n  \/\/\/ Get numMinWidth and numMaxWidth (blank lines are excluded)\n  let arr2dTsv      = [];\n  for( let i = 0; i < arrTsv.length; i++ ){\n    if( arrTsv[i] === \"\" ){ \/\/ Skip blank lines\n      continue;\n    }\n    let arrTmp = [];\n    let arrCells = arrTsv[i].split(\"\\t\");\n    for( let j = 0; j < numMaxWidth; j++ ){\n      if( j < arrCells.length ){\n        arrTmp[j] = arrCells[j];\n      }else{\n        arrTmp[j] = \"\";\n      }\n    }\n    arr2dTsv.push( arrTmp );\n  }\n  return arr2dTsv;\n}\n<\/script>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-792b99f2\"><h3 class=\"uagb-heading-text\">Workflow App example<\/h3><\/div>\n\n\n\n<figure class=\"wp-block-image size-medium\"><a href=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-App-Pattern-customer-triggered-fulfillment.png?ssl=1\" target=\"_blank\" rel=\"noreferrer noopener\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"560\" height=\"315\" src=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-App-Pattern-customer-triggered-fulfillment.png?resize=560%2C315&#038;ssl=1\" alt=\"Workflow-App-Pattern-customer-triggered-fulfillment\" class=\"wp-image-138341\" srcset=\"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-App-Pattern-customer-triggered-fulfillment.png?resize=560%2C315&amp;ssl=1 560w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-App-Pattern-customer-triggered-fulfillment.png?resize=1024%2C576&amp;ssl=1 1024w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-App-Pattern-customer-triggered-fulfillment.png?resize=768%2C432&amp;ssl=1 768w, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-App-Pattern-customer-triggered-fulfillment.png?w=1200&amp;ssl=1 1200w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-dcd0d582\"><h3 class=\"uagb-heading-text\">Trigger Code<\/h3><\/div>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;form id=&quot;send_po_tsv_trigger&quot;&gt;\n  &lt;label for=&quot;qEmail&quot;&gt;&lt;strong&gt;Email Address \uff0f \u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9&lt;\/strong&gt;:&lt;\/label&gt;&lt;br&gt;\n  &lt;input  id=&quot;qEmail&quot; type=&quot;email&quot; name=&quot;q_Email&quot;\n    placeholder=&quot;you@example.com&quot; required size=&quot;32&quot; maxlength=&quot;64&quot;&gt;&lt;br&gt;&lt;br&gt;\n  &lt;label   for=&quot;qTsv&quot;&gt;&lt;strong&gt;Purchase Orders TSV \uff0f \u767a\u6ce8TSV&lt;\/strong&gt;:&lt;\/label&gt;&lt;br&gt;\n  q_product -  q_quantity - q_price - (q_amount:calced)&lt;br&gt;\n  &lt;textarea id=&quot;qTsv&quot; name=&quot;q_line_items&quot; rows=&quot;5&quot; cols=&quot;33&quot;&gt;&lt;\/textarea&gt;\n  &lt;input id=&quot;qsubmit&quot; type=&quot;submit&quot; value=&quot;Submit \uff0f \u9001\u4fe1&quot;&gt;\n&lt;\/form&gt;\n&lt;div id=&quot;send_po_tsv_log&quot;&gt;A few minutes after submitting, an order confirmation URL will be sent.&lt;\/div&gt;\n\n&lt;script&gt;\nconst strStartUrl   = &quot;https:\/\/example.questetra.net\/System\/Event\/MessageStart\/99\/0\/start&quot;; \/\/ \u2605\u2605\nconst strKey        = &quot;GdixCgUffsvDBqnsOPPQUVgWtmwEbsjC&quot;; \/\/ \u2605\u2605See your workflow app\u2605\u2605\nconst strIdForm     = &quot;#send_po_tsv_trigger&quot;;      \/\/ \u2605must be same as Trigger form id\u2605\nconst strIdLog      = &quot;#send_po_tsv_log&quot;;          \/\/ \u2605must be same as Log div id\u2605\nconst strIdTextarea = &quot;#qTsv&quot;;   \/\/ \u2605\nconst strIdEmail    = &quot;#qEmail&quot;; \/\/ \u2605\n\nconst elTriggerForm = document.querySelector ( strIdForm );\nconst elOutput      = document.querySelector ( strIdLog );\nconst elTextarea    = document.querySelector ( strIdTextarea );\nconst elEmail       = document.querySelector ( strIdEmail );\n\nelTextarea.addEventListener ( &#39;change&#39;, function(ev) { \/\/ Preview TSV in elOutput\n  \/\/let elOutput    = document.querySelector ( strIdLog );\n  let arr2dPo = parseAsRectangular( elTextarea.value );\n  let strTmpHtml    = &quot;&quot;;\n  strTmpHtml       += &quot;Entered TSV preview  (&quot; + arr2dPo[0].length + &quot; cols  &quot; + arr2dPo.length + &quot; rows)&lt;br&gt;&quot;;\n  strTmpHtml       += &quot;&lt;table&gt;&quot;;\n  for( let i = 0; i &lt; arr2dPo.length; i++ ){\n    strTmpHtml     += &quot;&lt;tr&gt;&quot;;\n    for( let j = 0; j &lt; arr2dPo[i].length; j++ ){\n      strTmpHtml   += &quot;&lt;td style=&#39;padding:0px 2px&#39;&gt;&quot; + encodeHTML( arr2dPo[i][j] ) + &quot;&lt;\/td&gt;&quot;;\n    }\n    strTmpHtml     += &quot;&lt;\/tr&gt;&quot;;\n  }\n  strTmpHtml       += &quot;&lt;\/table&gt;&quot;;\n  elOutput.innerHTML = strTmpHtml;\n}, false);\n\nelTriggerForm.addEventListener ( &#39;submit&#39;, function(ev) {\n  ev.preventDefault();\n  \/\/let elOutput    = document.querySelector( strIdLog );\n  let arr2dPo = parseAsRectangular( elTextarea.value );\n  let strQtableXml  = &quot;&quot;;\n  strQtableXml     += &quot;&lt;list&gt;&quot;;\n  for( let i = 0; i &lt; arr2dPo.length; i++ ){\n    strQtableXml   += &quot;&lt;row&gt;&quot;;\n    for( let j = 0; j &lt; arr2dPo[i].length; j++ ){\n      strQtableXml += &quot;&lt;col&gt;&quot; + encodeHTML( arr2dPo[i][j] ) + &quot;&lt;\/col&gt;&quot;;\n    }\n    strQtableXml   += &quot;&lt;\/row&gt;&quot;;\n  }\n  strQtableXml     += &quot;&lt;\/list&gt;&quot;;\n\n  let objFormData   = new FormData();\n  objFormData.append ( &#39;q_Email&#39;     , elEmail.value ); \/\/ \u2605\n  objFormData.append ( &#39;q_line_items&#39;, strQtableXml  ); \/\/ \u2605\n  objFormData.append ( &#39;key&#39;, strKey );\n\n  elOutput.innerHTML = &quot;Uploading ...&quot;;\n  fetch( strStartUrl, {\tmethod: &#39;POST&#39;, mode: &#39;cors&#39;, body: objFormData } ).then( response =&gt; {\n    console.log( &#39;response: &#39; + response.ok + &quot; &quot; + response.status + &quot; &quot; + response.statusText );\n      \/\/ https:\/\/developer.mozilla.org\/docs\/Web\/API\/Response\n    if ( !response.ok ) { throw new Error( &quot;response was not ok&quot; ); } \/\/ go &quot;catch&quot;\n    return response.text(); \/\/ QBPMS responces the string PID.\n  })\n  .then( (text) =&gt; {\n    elOutput.innerHTML = &quot;Accepted (ID: &quot; + text + &quot;).&quot;;\n  })\n  .catch( (error) =&gt; {\n    elOutput.innerHTML = error;\n  });\n}, false);\n\n\n\/\/\/\/\/\/ functions\n\/\/\/\/ Escape XML\/HTML\nfunction encodeHTML ( str ){\n  return str.replace(\/&\/g, &#39;&amp;&#39;).replace(\/&lt;\/g, &#39;&lt;&#39;).replace(\/&gt;\/g, &#39;&gt;&#39;)\n            .replace(\/&quot;\/g, &#39;&quot;&#39;).replace(\/&#39;\/g, &#39;&apos;&#39;);\n}\n\n\/\/\/\/ Parses TSV string as two-dimensional rectangular data matrix and creates a 2D array.\nfunction parseAsRectangular( strTsv ){\n  const arrTsv = strTsv.split(&quot;\\n&quot;);\n  \/\/\/ Get numMinWidth and numMaxWidth (blank lines are excluded)\n  let numMinWidth   = Infinity; \/\/ cf. String-Type Max: 1 million\n  let numMaxWidth   = 0;\n  let numBlanklines = 0;\n  for( let i = 0; i &lt; arrTsv.length; i++ ){\n    if( arrTsv[i] === &quot;&quot; ){ \/\/ Skip blank lines\n      numBlanklines += 1;\n      continue;\n    }\n    let arrCells = arrTsv[i].split(&quot;\\t&quot;);\n    if( numMinWidth &gt; arrCells.length ){ numMinWidth = arrCells.length; }\n    if( numMaxWidth &lt; arrCells.length ){ numMaxWidth = arrCells.length; }\n  }\n  console.log( &quot; TsvDataCheck:&quot; + &quot; MinWidth:&quot; + numMinWidth + &quot; MaxWidth:&quot; + numMaxWidth +\n               &quot; Lines:&quot; + arrTsv.length + &quot; (BlankLines:&quot; + numBlanklines + &quot;)&quot; );\n  \/\/\/ Get numMinWidth and numMaxWidth (blank lines are excluded)\n  let arr2dTsv      = [];\n  for( let i = 0; i &lt; arrTsv.length; i++ ){\n    if( arrTsv[i] === &quot;&quot; ){ \/\/ Skip blank lines\n      continue;\n    }\n    let arrTmp = [];\n    let arrCells = arrTsv[i].split(&quot;\\t&quot;);\n    for( let j = 0; j &lt; numMaxWidth; j++ ){\n      if( j &lt; arrCells.length ){\n        arrTmp[j] = arrCells[j];\n      }else{\n        arrTmp[j] = &quot;&quot;;\n      }\n    }\n    arr2dTsv.push( arrTmp );\n  }\n  return arr2dTsv;\n}\n&lt;\/script&gt;<\/code><\/pre><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Send Purchase Order TSV<\/p>\n","protected":false},"author":2,"featured_media":138347,"parent":138014,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_uag_custom_page_level_css":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_wpcom_ai_launchpad_about_page":false,"_wpcom_ai_launchpad_gallery_page":false,"_wpcom_ai_launchpad_contact_page":false,"_wpcom_ai_launchpad_events_page":false,"_wpcom_ai_launchpad_video_page":false,"_wpcom_ai_launchpad_portfolio_piece":false,"footnotes":""},"class_list":["post-138344","page","type-page","status-publish","has-post-thumbnail","hentry"],"uagb_featured_image_src":{"full":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1",1200,675,false],"thumbnail":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=440%2C440&ssl=1",440,440,true],"medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=560%2C315&ssl=1",560,315,true],"medium_large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=768%2C432&ssl=1",768,432,true],"large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1024%2C576&ssl=1",1024,576,true],"1536x1536":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1",1200,675,true],"2048x2048":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-portrait-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=900%2C675&ssl=1",900,675,true],"newspack-article-block-square-large":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=1200%2C675&ssl=1",1200,675,true],"newspack-article-block-landscape-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=800%2C600&ssl=1",800,600,true],"newspack-article-block-portrait-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=600%2C675&ssl=1",600,675,true],"newspack-article-block-square-medium":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=800%2C675&ssl=1",800,675,true],"newspack-article-block-landscape-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=600%2C450&ssl=1",600,450,true],"newspack-article-block-portrait-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=450%2C600&ssl=1",450,600,true],"newspack-article-block-square-intermediate":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=600%2C600&ssl=1",600,600,true],"newspack-article-block-landscape-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=400%2C300&ssl=1",400,300,true],"newspack-article-block-portrait-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=300%2C400&ssl=1",300,400,true],"newspack-article-block-square-small":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=400%2C400&ssl=1",400,400,true],"newspack-article-block-landscape-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=200%2C150&ssl=1",200,150,true],"newspack-article-block-portrait-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=150%2C200&ssl=1",150,200,true],"newspack-article-block-square-tiny":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?resize=200%2C200&ssl=1",200,200,true],"newspack-article-block-uncropped":["https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1",1200,675,true]},"uagb_author_info":{"display_name":"IMAMURA, Genichi","author_link":"https:\/\/support.questetra.com\/ja\/author\/imamuragenichi\/"},"uagb_comment_info":0,"uagb_excerpt":"Send Purchase Order TSV","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/P9DiIh-zZm","jetpack-related-posts":[{"id":138331,"url":"https:\/\/support.questetra.com\/en\/tips\/workflow-trigger-code-202211\/send-purchase-order-tsv\/","url_meta":{"origin":138344,"position":0},"title":"Send Purchase Order TSV","author":"IMAMURA, Genichi","date":"2022-11-02","format":false,"excerpt":"Send Purchase Order TSV","rel":"","context":"\u985e\u4f3c\u6295\u7a3f","block_context":{"text":"\u985e\u4f3c\u6295\u7a3f","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/11\/Workflow-Trigger-send-po-tsv.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":137991,"url":"https:\/\/support.questetra.com\/en\/tips\/workflow-trigger-code-202211\/","url_meta":{"origin":138344,"position":1},"title":"Workflow Trigger Code 202211","author":"IMAMURA, Genichi","date":"2022-10-26","format":false,"excerpt":"\"\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\" \u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306f\u79c0\u9038\u3067\u3059\u3002\"\u81ea\u52d5\u958b\u59cb\" \u306f\u6539\u5584\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u3092\u7dad\u6301\u2026","rel":"","context":"\u985e\u4f3c\u6295\u7a3f","block_context":{"text":"\u985e\u4f3c\u6295\u7a3f","link":""},"img":{"alt_text":"Workflow Trigger Code","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":138014,"url":"https:\/\/support.questetra.com\/ja\/tips\/workflow-trigger-code-202211\/","url_meta":{"origin":138344,"position":2},"title":"Workflow Trigger Code 202211","author":"IMAMURA, Genichi","date":"2022-10-26","format":false,"excerpt":"\"\u65b0\u3057\u3044\u30d7\u30ed\u30bb\u30b9\" \u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u308b\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306f\u79c0\u9038\u3067\u3059\u3002\"\u81ea\u52d5\u958b\u59cb\" \u306f\u6539\u5584\u30e2\u30c1\u30d9\u30fc\u30b7\u30e7\u30f3\u3092\u7dad\u6301\u2026","rel":"","context":"\u985e\u4f3c\u6295\u7a3f","block_context":{"text":"\u985e\u4f3c\u6295\u7a3f","link":""},"img":{"alt_text":"Workflow Trigger Code","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/10\/workflow-trigger-code.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":106297,"url":"https:\/\/support.questetra.com\/en\/tips\/low-code-development-for-workflow-automation\/","url_meta":{"origin":138344,"position":3},"title":"Low-Code Development for Workflow Automation","author":"IMAMURA, Genichi","date":"2021-05-06","format":false,"excerpt":"The Workflow Designer places \"Automated Tasks\" ins\u2026","rel":"","context":"\u985e\u4f3c\u6295\u7a3f","block_context":{"text":"\u985e\u4f3c\u6295\u7a3f","link":""},"img":{"alt_text":"Workflow-Automation-with-Low-Code","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/Workflow-Automation-with-Low-Code-en.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/Workflow-Automation-with-Low-Code-en.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/Workflow-Automation-with-Low-Code-en.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/Workflow-Automation-with-Low-Code-en.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2021\/05\/Workflow-Automation-with-Low-Code-en.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":139947,"url":"https:\/\/support.questetra.com\/en\/tips\/workflow-trigger-code-202211\/send-inquiry-and-ga4-event\/","url_meta":{"origin":138344,"position":4},"title":"Send Inquiry and GA4 Event","author":"IMAMURA, Genichi","date":"2022-12-08","format":false,"excerpt":"\u300c\u753b\u9762\u9077\u79fb\u306e\u306a\u3044 form submit \u30dc\u30bf\u30f3\u300d\u306e\u5834\u5408\u3001\u305d\u306e\u30af\u30ea\u30c3\u30af\u6642\u306b \"form_submit\u2026","rel":"","context":"\u985e\u4f3c\u6295\u7a3f","block_context":{"text":"\u985e\u4f3c\u6295\u7a3f","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":139951,"url":"https:\/\/support.questetra.com\/ja\/tips\/workflow-trigger-code-202211\/send-inquiry-and-ga4-event\/","url_meta":{"origin":138344,"position":5},"title":"Send Inquiry and GA4 Event","author":"IMAMURA, Genichi","date":"2022-12-08","format":false,"excerpt":"\u300c\u753b\u9762\u9077\u79fb\u306e\u306a\u3044 form submit \u30dc\u30bf\u30f3\u300d\u306e\u5834\u5408\u3001\u305d\u306e\u30af\u30ea\u30c3\u30af\u6642\u306b \"form_submit\u2026","rel":"","context":"\u985e\u4f3c\u6295\u7a3f","block_context":{"text":"\u985e\u4f3c\u6295\u7a3f","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/support.questetra.com\/wp-content\/uploads\/2022\/12\/Workflow-Trigger-send-inquiry-and-ga4-event.png?fit=1200%2C675&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/pages\/138344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/comments?post=138344"}],"version-history":[{"count":2,"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/pages\/138344\/revisions"}],"predecessor-version":[{"id":138350,"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/pages\/138344\/revisions\/138350"}],"up":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/pages\/138014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/media\/138347"}],"wp:attachment":[{"href":"https:\/\/support.questetra.com\/ja\/wp-json\/wp\/v2\/media?parent=138344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}