<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yossapon Pornparisa (Yos) on Medium]]></title>
        <description><![CDATA[Stories by Yossapon Pornparisa (Yos) on Medium]]></description>
        <link>https://medium.com/@p.yosysp?source=rss-553a349b71ed------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HGaucY_QaaKydcjNazgRXg.jpeg</url>
            <title>Stories by Yossapon Pornparisa (Yos) on Medium</title>
            <link>https://medium.com/@p.yosysp?source=rss-553a349b71ed------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 20:20:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@p.yosysp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[OutSystems with SharePoint: A Deep Dive into Graph API Integration]]></title>
            <link>https://medium.com/@p.yosysp/outsystems-with-sharepoint-a-deep-dive-into-graph-api-integration-49af675a542d?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/49af675a542d</guid>
            <category><![CDATA[microsoft-graph-api]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[sharepoint]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Wed, 28 May 2025 17:01:19 GMT</pubDate>
            <atom:updated>2025-05-28T17:01:19.652Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BW3gMIQjqndiUPzzlaIuGw.png" /></figure><h3>🎯 Mission: Seamless SharePoint Integration</h3><p>Our goal? Build an OutSystems application that talks to SharePoint like a pro — uploading files, downloading them, and even <strong>converting them to PDF</strong> — all powered by the <strong>Microsoft Graph API</strong>.</p><h3>🔧 The Key Features</h3><p>✅ <strong>Upload a file</strong> to SharePoint<br> <a href="https://learn.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&amp;tabs=http">Graph API — PUT /driveItem/content</a></p><p>✅ <strong>Download a file</strong> from SharePoint<br> <a href="https://learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&amp;tabs=http">Graph API — GET /driveItem/content</a></p><p>✅ <strong>Convert to PDF</strong> on the fly<br> <a href="https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&amp;tabs=http">Graph API — GET /driveItem/content?format=pdf</a></p><h3>🧪 Test Drive</h3><p>Testing these APIs in <strong>Postman</strong> and <strong>ODC Studio</strong>? Smooth as butter:</p><ul><li>Response: 200 OK</li><li>Body: Perfect binary file or PDF</li><li>Result: 💯 Success</li></ul><p>We were flying high.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*NevDPa_BWHfV94NHRyEFMw.png" /><figcaption>Test MS Graph API via Postman</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*PzF0EYuDWYMc07AdIaRzpQ.png" /><figcaption>Test via ODC Studio</figcaption></figure><h3>💥 Surprise!!!!</h3><p>Then came the <strong>OutSystems Server Action</strong> test.</p><p>🛑 What went wrong?</p><ul><li>Files downloaded = <strong>corrupted</strong></li><li>Converted PDFs = <strong>broken</strong></li></ul><p>Wait… what?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*EcU2_ComiXYdk_srwHA8BA.png" /><figcaption>PDF corrupted</figcaption></figure><h3>🔍 Investigation Mode: Activated</h3><p>We added LogMessage action into OnBeforeRequest and OnAfterResponse. That’s when we saw the log:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-X4HhAkJ6Dhum5TjVMMYow.png" /><figcaption>Log</figcaption></figure><blockquote><strong><em>HTTP 302 Found</em></strong><em><br> With a </em><em>Location header pointing to a </em><strong><em>pre-authenticated</em></strong><em> URL</em></blockquote><p>🤯 OutSystems doesn’t follow redirects automatically in Server Actions.</p><p>So instead of a clean file, we were reading the <strong>intermediate redirect response</strong>. No wonder the binary was garbage.</p><h3>🙌 Huge Thanks to OutSystems Support</h3><p>We reached out to <strong>OutSystems Support</strong>, and they helped us zero in on the core issue:</p><blockquote><em>❗ Server actions do not automatically follow redirects.<br> ✅ You must manually handle 3xx responses and re-issue the request.</em></blockquote><p>Their guidance was key in finding a clean, maintainable solution.</p><h3>🛠 The Fix: Manual Redirect</h3><p>With OutSystems Support’s help, we implemented the following:</p><ol><li>Detect the 302 response in OnAfterResponse</li><li>Extract the Location from headers</li><li>Fire off a new GET using Request_SubmitGetRequest</li><li>Replace the corrupted response binary with the real file</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gQuNj4Lx889NmMiLtDxNxQ.png" /><figcaption>Manual redirect</figcaption></figure><p>Boom. Now we’re following redirects.</p><h3>✅ After the fixed</h3><p>✔️ Files download perfectly<br> ✔️ PDFs convert correctly<br> ✔️ No more corrupted data<br> ✔️ Fully Graph API + SharePoint compliant</p><h3>💡 Pro Tip for Devs</h3><p>When calling Microsoft Graph from OutSystems:</p><blockquote><em>🧠 </em><strong>Always handle 302 redirects when using Graph API to download or convert files.</strong><br> The first response may just be a handshake — the real content is waiting at the redirect URL.</blockquote><h3>🎉 Wrap-Up</h3><p>With the issue resolved and a redirect handler in place, our app now integrates smoothly with SharePoint.</p><p><strong>Big thanks again to the OutSystems Support Team</strong> — their quick insight turned a tricky problem into a solid win.</p><p>Finally, I would like to leave you with the ways to follow Bluebik Vulcan.</p><p>Website: <a href="https://www.vulcan.bluebik.com/">https://www.vulcan.bluebik.com/</a><br>Facebook: <a href="https://www.facebook.com/bluebikvulcan">https://www.facebook.com/bluebikvulcan</a><br>Medium: <a href="https://medium.com/@bluebikvulcan">https://medium.com/@bluebikvulcan</a><br>Youtube: <a href="https://www.youtube.com/@BluebikVulcan_2023">https://www.youtube.com/@BluebikVulcan_2023</a><br>LinkedIn — linkedin.com/company/bluebik-vulcan/</p><p>Written by: Yossapon Pornparisa, Technical Consultant, Bluebik Vulcan</p><p>#BluebikVulcan #MakeRealityAlive​​​​​​​​​​​​​​</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49af675a542d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When Too Much Data Breaks Your Screen: OutSystems Payload Limits]]></title>
            <link>https://medium.com/@p.yosysp/when-too-much-data-breaks-your-screen-outsystems-payload-limits-a3ccf114fbdd?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3ccf114fbdd</guid>
            <category><![CDATA[outsystems-development]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[outsystems]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Thu, 17 Apr 2025 16:45:28 GMT</pubDate>
            <atom:updated>2025-04-17T16:45:28.257Z</atom:updated>
            <content:encoded><![CDATA[<p>Last time, I ran into a strange error in my OutSystems app:</p><p>OS-CLRT-60901 [FetchHttpClient] CommunicationException: Failed to parse JSON request content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aW94GNA4Epm1-PDQPT_bzQ.png" /><figcaption>Error message <strong>Failed to parse JSON request content.</strong></figcaption></figure><p>It showed up when a user changed a dropdown value on a screen where they could attach multiple files — each up to <strong>10MB</strong> in size. My code used <strong>‘Refresh an Aggregate’</strong> to reload the <strong>Request Sub-Type</strong> dropdown from the data source.</p><p>Naturally, I opened the <strong>Network tab</strong> to investigate.</p><p>And here’s the catch:<br>When you use <strong>‘Refresh an Aggregate’</strong>, <strong>all screen variables</strong> get packed into the request payload — even ones that aren’t related to the action.</p><p>That becomes a problem fast.<br>Once the payload hits <strong>28MB</strong>, you slam into a <strong>hard limit</strong> and get the JSON parsing error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*dTgKW0yQI-yhXEamRCCgoQ.png" /><figcaption>Request payload of screen aggregate</figcaption></figure><p>💡 The Fix</p><p>Instead of using <strong>‘Refresh an Aggregate’</strong>, I switched to a <strong>server action call</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4OQyLpBhMA-dhMumzljXA.png" /><figcaption>DropdownRequestTypeOnChanged</figcaption></figure><p>Why?<br>Because when you call a server action directly, <strong>only the necessary variables</strong> are sent in the request. Clean. Lightweight. No payload bloat.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ix7R-u6-LTD3BsM_dLGlOg.png" /><figcaption>Server action call when the first dropdown is changed</figcaption></figure><p>If your screen allows file uploads or handles large variables, avoid <strong>‘Refresh an Aggregate’</strong> in dynamic dropdowns or similar UI triggers. Go with server actions — you’ll stay well under the limit and avoid those nasty errors.</p><p>PS., In the demo application I’ve entity diagram like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxZG3MIEaSHn9HtZDGMedg.png" /><figcaption>Entity diagram</figcaption></figure><p>Finally, I would like to leave you with the ways to follow Bluebik Vulcan.</p><p>Website: <a href="https://www.vulcan.bluebik.com/">https://www.vulcan.bluebik.com/</a><br>Facebook: <a href="https://www.facebook.com/bluebikvulcan">https://www.facebook.com/bluebikvulcan</a><br>Medium: <a href="https://medium.com/@bluebikvulcan">https://medium.com/@bluebikvulcan</a><br>Youtube: <a href="https://www.youtube.com/@BluebikVulcan_2023">https://www.youtube.com/@BluebikVulcan_2023</a><br>LinkedIn — linkedin.com/company/bluebik-vulcan/</p><p>Written by: Yossapon Pornparisa, Technical Consultant, Bluebik Vulcan</p><p>#BluebikVulcan #MakeRealityAlive​​​​​​​​​​​​​​</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3ccf114fbdd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create loading component in OutSystems]]></title>
            <link>https://medium.com/@p.yosysp/create-loading-component-in-outsystems-43d83e17d0c1?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/43d83e17d0c1</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Fri, 03 Jan 2025 16:32:47 GMT</pubDate>
            <atom:updated>2025-01-03T16:32:47.000Z</atom:updated>
            <content:encoded><![CDATA[<p>In the real-world scenario, we must prevent users from taking any action on a screen when the data is loading or saving. In OutSystems, we use web block to create a reusable loading component.</p><p>First, let’s create block and named it Block_Loading.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*-N5lyuqwqMJ809n5sq3yJw.png" /><figcaption>Create Block</figcaption></figure><p>Add input parameter and name it IsLoading (boolean)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*xb1gfcAo-GEos6ZDQdJKzw.png" /><figcaption>Add Input variable</figcaption></figure><p>Add a container widget inside the block and set the value of the Style Classes property to “popup-backdrop” then, set the value of attribute data-popup-backdrop to “data-popup-backdrop”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*QIYslZEMhPkIkBO4NzeqyQ.png" /><figcaption>Container style</figcaption></figure><p>Add an Icon widget inside the container and set values follow the details below</p><p>Icon : spinner, Size : 4x font size, Style Classes “icon spinner”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/416/1*L7NYcQHOPIq7z9AMeGjprQ.png" /><figcaption>Loading icon</figcaption></figure><p>Enclose the container inside an if condition where IsLoading is False, and move the container to the False branch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*2eq43HlqbmNPWutz37M6rQ.png" /><figcaption>Enclose in If</figcaption></figure><p>On your screen, create a local variable to handle showing or hiding the loading component</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*rojKqQ7OCC35RQG1A1Jzmw.png" /><figcaption>Screen variable</figcaption></figure><p>Add the loading block inside the screen and pass the IsLoading variable to the component.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*DufZcwUODOmVFbZKVNsTzg.png" /></figure><p>When the variable IsLoading changes to True, the loading component will appear on the screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*bB1dAWvJaegBsAMijOgxww.png" /><figcaption>Button Action</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*xH29jOr54QztaK6xz-Y2sA.gif" /><figcaption>Loading screen</figcaption></figure><p>Inside your button, the save logic should look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*DVvB7R1WCzTzEpzZA5ZIOw.png" /><figcaption>Button Save logic</figcaption></figure><p>Finally, I would like to leave you with the ways to follow Bluebik Vulcan.</p><p>Website: <a href="https://www.vulcan.bluebik.com/">https://www.vulcan.bluebik.com/</a><br>Facebook: <a href="https://www.facebook.com/bluebikvulcan">https://www.facebook.com/bluebikvulcan</a><br>Medium: <a href="https://medium.com/@bluebikvulcan">https://medium.com/@bluebikvulcan</a><br>Youtube: <a href="https://www.youtube.com/@BluebikVulcan_2023">https://www.youtube.com/@BluebikVulcan_2023</a><br>LinkedIn — linkedin.com/company/bluebik-vulcan/</p><p>Written by: Yossapon Pornparisa, Technical Consultant, Bluebik Vulcan</p><p>#BluebikVulcan #MakeRealityAlive​​​​​​​​​​​​​​</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=43d83e17d0c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[สร้าง Approval Workflow จากข้อมูล MS Forms]]></title>
            <link>https://medium.com/@p.yosysp/%E0%B8%AA%E0%B8%A3%E0%B9%89%E0%B8%B2%E0%B8%87-approval-workflow-%E0%B8%88%E0%B8%B2%E0%B8%81%E0%B8%82%E0%B9%89%E0%B8%AD%E0%B8%A1%E0%B8%B9%E0%B8%A5-ms-forms-1613e62b368f?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/1613e62b368f</guid>
            <category><![CDATA[microsoft-forms]]></category>
            <category><![CDATA[approval-workflow]]></category>
            <category><![CDATA[power-automate]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Thu, 05 Dec 2024 18:18:46 GMT</pubDate>
            <atom:updated>2024-12-05T18:23:19.976Z</atom:updated>
            <content:encoded><![CDATA[<p>Scenario ของเราในวันนี้คือ</p><ul><li>เราจะสร้าง MS Forms เพื่อให้ User กรอกข้อมูล และ Upload file เข้ามา โดยที่ Field ที่กรอกเข้ามาจะมี รายละเอียด, Email ผู้อนุมัติ, แนบไฟล์</li><li>เราจะเอาข้อมูลที่ได้มาไปเก็บที่ SharePoint List และเอาไฟล์ที่ถูก Upload มาเก็บไว้ที่ Attachment ใน SharePoint List โดยที่จะให้ Column Status เป็น In-Progress</li><li>หลังจากที่เราทำงานเรียบร้อย ให้ปรับ Status เป็น Send Approval Power Automate จะทำงานโดยการส่งข้อมูลที่อยู่ใน SharePoint List และไฟล์แนบไปให้อนุมัติ</li><li>ถ้า Approver อนุมัติ ให้ Update Status Completed ถ้า Reject ให้ Update Status Rejected ถ้าให้กลับมาแก้ไขให้ Update Status Rework พร้อมกับแจ้งเตือนทาง MS Teams Chat</li></ul><p>Form ของเราจะมีหน้าตาแบบนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NgXb-sUG2l7EHMIVREmHlA.png" /><figcaption>MS Forms</figcaption></figure><p>เราจะมาสร้าง SharePoint List ไว้เก็บข้อมูลกันก่อน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*SInpJGagQdFDvdyaqZSVgA.png" /><figcaption>Create List</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*LhinbWf4tppWILIKA2nkiQ.png" /><figcaption>Create List</figcaption></figure><p>Column Title จะถูกสร้างมาให้อยู่แล้ว เราจะเอามาเก็บค่า Subject จาก MS Forms สร้าง Column Details เพิ่มเป็น Type Multiple lines of text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/321/1*q_z8_Xg5c4C1Nc2TzMhEIQ.png" /><figcaption>Details Column</figcaption></figure><p>สร้าง Column Email มาเก็บ Email ของ Approver</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/319/1*wbyYbpOxlr34FIc653liOw.png" /><figcaption>Email Column</figcaption></figure><p>ส่วน Attachment ปกติเวลาเราสร้าง SharePoint List Attachment จะติดมาอยู่แล้วให้เอาออกมา Show ด้วย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*pXYQl7FUiY4zSaHBJiZwHg.png" /><figcaption>Show Attachment column</figcaption></figure><p>สร้าง Column Status Type เป็น Choice เราจะได้ไม่ต้องพิมพ์เอง Default Value คือถ้าเราสร้างใหม่โดยที่ไม่ระบุ Status จะเป็น In-Progress เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*uCQQkO8o09S5c9Xbv_FZaA.png" /></figure><p>ทีนี้เราจะมาเริ่มสร้างส่วนของ Workflow ที่จะเอาข้อมูลมาจาก MS Forms กันโดยให้เลือก trigger เป็น When a new response is submitted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*Cg6N8tdvWgx6FM8Cc5AYVQ.png" /><figcaption>Create PowerAutomate MS Forms Trigger</figcaption></figure><p>Config ให้ Trigger Flow ไปเกาะอยู่กับ MS Forms ที่เราเตรียมไว้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*E4y-h6HIQPRFGTIKH2yXcg.png" /><figcaption>Trigger Config</figcaption></figure><p>Add action Get response details โดยเอาค่า Response Id จาก trigger มาใช้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vGSGF9f28_azqIAR5F_p6Q.png" /><figcaption>Get response details</figcaption></figure><p>Add action Create item (สร้าง record บน SharePoint List)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jeRC7NGouHlI-zQQKGdwTw.png" /><figcaption>Create item</figcaption></figure><p>Add action Parse Json <strong>อันนี้แอบยากนิดนึง ปกติเวลาเราให้ upload file มาบน MS Forms default มันจะไปเก็บที่ onedrive เจ้าของ form และ field Attachments ที่เราได้มาจะเป็น text json ที่บอก ชื่อไฟล์, id ของไฟล์ เราใช้แค่ 2 ตัวนี้ก็พอ</strong></p><pre>[{&quot;name&quot;:&quot;&quot;,&quot;id&quot;:&quot;&quot;}]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbBIoSSGjrTSfu48RwA8tQ.png" /><figcaption>Parse Json</figcaption></figure><p>Add action Get file content อันนี้จะเป็นการไปเอาไฟล์มาจาก onedrive ให้ใส่ field id ลงไป ตัว flow จะเอา action นี้เข้าไปไว้ใน For each loop อัตโนมัติเพราะ Parse Json output จะได้หลาย record สมมุติว่า upload มา 5 file ก็จะไปเอาทั้ง 5 file เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*szzBhQ1m44d_Lh6tbHYHpA.png" /></figure><p>จากนั้นเราจะเอาไฟล์ไปเก็บที่ SharePoint List Attachment เวลากดเพิ่ม action กดเครื่อง + ที่อยู่ใน For each loop</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*8slCRPpu12zSLtwQaWqcvw.png" /><figcaption>For each</figcaption></figure><p>Add action Add attachment</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8hxUEXPO-LspwEYTYDh4Q.png" /><figcaption>add attachment</figcaption></figure><p>จากนั้นให้กด Save และลองSubmit MS Forms ดู จะเห็นว่า Flow เอาข้อมูลพร้อมไฟล์มาใส่ไว้รอที่ SharePoint แล้ว</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*uELor9SG_lvPW_XoMslpJA.png" /><figcaption>Result of Flow(1)</figcaption></figure><p>เรามาเริ่มสร้าง Flow ที่สองที่จะให้ทำงานเมื่อ Status ถูก Update เป็น Waiting for Approval ให้เลือก Trigger When an item is created or modified</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*k-pLv2fxdkQ5kV38DWCEmQ.png" /><figcaption>Trigger</figcaption></figure><p>เลือก Site, List ที่เราสร้างไว้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*JhUxknrhIEyFofcC9g-Kqg.png" /><figcaption>Trigger config</figcaption></figure><p>Add action Initialize variable เพื่อประกาศตัวแปรมาเก็บค่า attachments เอาไปส่งใน Approval</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*qMqTz8w3yyiJrkHXW4PdYw.png" /><figcaption>Initialize variable</figcaption></figure><p>ทีนี้ปัญหาคือ Trigger ตัวนี้มันทำงานแบบไม่เจาะจง Status ที่เราต้องการ เราต้อง Filter Status ที่ไม่เกี่ยวข้องทิ้งเพื่อไม่ให้มันทำงานเวลา Status อื่นเข้ามา</p><p>Add Condition check Status เท่ากับ Send Approval</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NniqpLRBv7cY2Z9QVwdETg.png" /><figcaption>Condition Status Value Equal to Send Approval</figcaption></figure><p>ใน False ให้ Add action Terminate เพื่อให้ Flow จบการทำงานใส่ Status Succeeded ไปเลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*VbP_Dbz-yNDvqlh2zhuAvg.png" /><figcaption>Terminate</figcaption></figure><p>ใน True Add action Update item ให้เป็น Waiting for Approval</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YwDKYDXCnO46ct_VmXe5og.png" /><figcaption>Update status waiting for approval</figcaption></figure><p>Add action Get attachments action นี้จะใช้เพื่อดูข้อมูล attachments ใน Record นี้ (ไม่ได้ file content มาเดี๋ยวต้องใช้ Get attachment content เพิ่ม)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mFozlxLdMiOK2aICXcgxLQ.png" /><figcaption>Get attachments</figcaption></figure><p>Add action Get attachment content หลังจากที่ใส่ File Identifier Flow จะเอา Action เข้าไปไว้ใน Loop ให้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pjOgQMS2gA0o3sEw1Q6QtQ.png" /><figcaption>Get attachment content</figcaption></figure><p>Add action Append to array variable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RChozZ7V1zIweFRqRKl8qQ.png" /><figcaption>Append to array variable</figcaption></figure><p>Add action Start and wait for an approval</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nAi1TrUNOWhaCA0QcehLLA.png" /><figcaption>Start and wait for an approval</figcaption></figure><p>ในกรณีที่ Outcome ของ Approval สามารถมีได้ 3 แบบคือ Approve, Reject, Rework เราจะใช้ Switch Case แทนการใช้ If Else จะดูง่ายกว่าการ If Else ซ้อนกันไปเรื่อยๆ</p><p>Add action Switch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vZl2R-eDI9QdNjflS4llaw.png" /><figcaption>Switch</figcaption></figure><p>Add 3 case คือ Approve, Reject, Rework</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*W8K2hOgXnAZENQg_pCoUXw.png" /><figcaption>Add case</figcaption></figure><p>จะได้หน้าตาแบบนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1006/1*ZAoH1cFOR3L_uH2WaNl7Zw.png" /><figcaption>3 Case</figcaption></figure><p>เสร็จแล้วเราจะ Update Status ตาม Outcome ที่ได้ ให้ทำเหมือนตอนที่ Update item ให้เป็น Waiting for Approval แต่ให้เปลี่ยน Status เป็น Completed, Rejected, Rework</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tG2K5c6pSUucBorZEhadfg.png" /><figcaption>Update Status by Outcome</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Zbpz3zzutG33dXvd4ePmg.png" /><figcaption>Update Status config</figcaption></figure><p>Add action Post message in a chat or channel เพื่อแจ้งเตือนตัวเองว่ามีคนกด action มาแล้ว</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ivSUpXdUY8LmzkBZKdKSgQ.png" /><figcaption>Post message</figcaption></figure><p>พอเสร็จแล้ว Flow หน้าตาประมาณนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*eXPY9ijv36xhmBLWDHAoQg.png" /><figcaption>Finished</figcaption></figure><p>Test flow โดยการกรอก MS Forms แล้วไป Update Status ที่ SharePoint List</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*WnhW1a-V7uNN69b_dBk6Kw.png" /><figcaption>Approval card</figcaption></figure><p>เหมือนจะต่อคำมาผิดนิดนึงนะครับ 5555</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*ZksoLEbJiwXjdzQqg21-6w.png" /><figcaption>Teams message</figcaption></figure><p>ปล. Default ใน Switch ควรจะใส่ไม่ควรปล่อยผ่าน จะให้ error หรืออะไรก็ได้ไม่งั้นมันจะทำงานไม่ถูก ควร handle ให้ได้ครบทุกเคส</p><p>สุดท้ายนี้ขอฝากช่องทางติดตามของ Bluebik Vulcan ไว้ด้วยนะครับ</p><p>Website: <a href="https://www.vulcan.bluebik.com/">https://www.vulcan.bluebik.com/</a><br>Facebook: <a href="https://www.facebook.com/bluebikvulcan">https://www.facebook.com/bluebikvulcan</a><br>Medium: <a href="https://medium.com/@bluebikvulcan">https://medium.com/@bluebikvulcan</a><br>Youtube: <a href="https://www.youtube.com/@BluebikVulcan_2023">https://www.youtube.com/@BluebikVulcan_2023</a><br>LinkedIn — linkedin.com/company/bluebik-vulcan/</p><p>Written by: Yossapon Pornparisa, Technical Consultant, Bluebik Vulcan</p><p>#BluebikVulcan #MakeRealityAlive</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1613e62b368f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Display user’s profile picture from Graph API in OutSystems]]></title>
            <link>https://medium.com/@p.yosysp/display-user-profile-from-graph-api-in-outsystems-a5e50f157782?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/a5e50f157782</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[microsoft-graph-api]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <category><![CDATA[outsystems]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Wed, 14 Aug 2024 11:25:12 GMT</pubDate>
            <atom:updated>2024-08-14T11:32:25.512Z</atom:updated>
            <content:encoded><![CDATA[<p>First, you gotta register your Azure app in the Azure portal. You’ll need these permissions:</p><ul><li>Microsoft Graph Profile.Photo.Read.All</li></ul><p>Don’t forget to grant admin consent for the API permissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*B0hxc50m6XYWV15jzw7LMA.png" /></figure><p>Next, create a client secret for your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J4ot3Ii2YORy3Y9D69BQEQ.png" /></figure><p>To authenticate with Microsoft Graph API in OutSystems, we’ll use POST request with following details:</p><ul><li>Method POST</li><li>Url <a href="https://login.microsoftonline.com/%7BtenantId%7D/oauth2/v2.0/token">https://login.microsoftonline.com/{tenantId}/oauth2/v2.0/token</a></li><li>Request body, Response in below image.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HnuUHYE8OWza9RxE5Iwb7A.png" /></figure><p>Make sure the request format is “Form URL Encoded” and the response format is “JSON”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*vZavm-sg1WN_EVv1wW6ZTA.png" /></figure><p>Next, let’s get the profile picture. We’ll use a GET request with the following details:</p><ul><li>Method GET</li><li>Url <a href="https://graph.microsoft.com/v1.0/users/%7BobjectId%7D/photos/%7Bsize%7D/$value">https://graph.microsoft.com/v1.0/users/{objectId}/photos/{size}/$value</a></li><li>Request header Authorization</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BEG-FsqGDOYBPFOGhTKloA.png" /></figure><p>Next, in the Test tab, we’ll test the GetAccessToken method in Postman. Copy the access token into the Authorization field, then add the size “48x48” and user object ID to their respective fields.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*58CrZnnN8wS7x2ZIhqYUQg.png" /></figure><p>Click the “Copy to response body” button, then click “Finish” button.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ILDACWt5eV07HbvhjB-gvQ.png" /></figure><p>Make sure the Response Format is Binary</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*dPboKKTLX1vAxYEjqMat8g.png" /></figure><p>Now, let’s create a Server Action to consume the Graph API. This Server Action will have input and output parameters as follows:</p><ul><li>Input Parameter Name In_AADObjectId, DataType Text</li><li>Input Parameter Name In_Size, DataType Text</li><li>Output Parameter Name Out_ProfilePicture, DataType Binary Data</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*vVduxyEJWsI95YanakLSpA.png" /></figure><p>In this Server Action, first, we must invoke the REST API to obtain an access token. Then, invoke the REST API to get the profile picture. Finally, assign the value of ‘GetPhoto.Response’ to the ‘Out_ProfilePicture’ output parameter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*s4qhgFUSkcuoNe6aXqk9zQ.png" /></figure><p>Now, let’s display the profile picture on a screen. This screen will show user information synced from Azure AD every midnight. Let’s add an image widget to the table on the screen. Then, create a local variable named ‘IsReady’ with a default value of False. Implement conditional rendering for the image, displaying it only when ‘IsReady’ is True. This will prevent the ‘Index out of range’ error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OkhsWOFnIFbJriK1aL-c6Q.png" /></figure><p>After fetching user data, run the client action to execute the ‘GetUserPhoto’ server action. Append the result of each server action call to an array. Then, assign the value True to the variable IsReady.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*flJkusB56GgP4o2Y_HbAsA.png" /></figure><p>Server action required 2 input parameters InAADObjectId, In_Size</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*sreEkQC5WVnZawNQ7at4fg.png" /></figure><p>Then assign value of image content with this expression ‘BinaryDatas[DataAction1.OutGetUsersResponse.Value.CurrentRowNumber]’</p><p>Let’s test it.</p><p>The first time you test it, you’ll get a 404 Not Found error for users without profile pictures. We need to handle this error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nBA7EdbyLu0zZWXUKCYJrQ.png" /></figure><p>In the REST API section add OnAfterResponse action in GetProfileImage API</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/866/1*9QvR5QplPZu_30lQSZz58Q.png" /></figure><p>If the StatusCode is 404, set the value of CustomizedResponse.StatusCode to 200 and ResponseBinary to NullBinary().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ii_GGhs_08jG8Tjpu_J3mg.png" /></figure><p>Finally, I would like to leave you with the ways to follow Bluebik Vulcan.</p><p>Website: <a href="https://www.vulcan.bluebik.com/">https://www.vulcan.bluebik.com/</a><br>Facebook: <a href="https://www.facebook.com/bluebikvulcan">https://www.facebook.com/bluebikvulcan</a><br>Medium: <a href="https://medium.com/@bluebikvulcan">https://medium.com/@bluebikvulcan</a><br>Youtube: <a href="https://www.youtube.com/@BluebikVulcan_2023">https://www.youtube.com/@BluebikVulcan_2023</a><br>LinkedIn — linkedin.com/company/bluebik-vulcan/</p><p>Written by: Yossapon Pornparisa, Technical Consultant, Bluebik Vulcan</p><p>#BluebikVulcan #MakeRealityAlive​​​​​​​​​​​​​​</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a5e50f157782" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OutSystems Custom External Logic C#]]></title>
            <link>https://medium.com/@p.yosysp/outsystems-custom-external-logic-c-54e529d97a3f?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/54e529d97a3f</guid>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[outsystems-development]]></category>
            <category><![CDATA[dotnet]]></category>
            <category><![CDATA[low-code]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Wed, 01 May 2024 15:59:43 GMT</pubDate>
            <atom:updated>2024-05-01T15:59:43.792Z</atom:updated>
            <content:encoded><![CDATA[<p>OutSystems เป็น Platform Low code ที่มี Component ให้ Download มาใช้เยอะมากๆอยู่แล้ว ถ้าเราเป็น Citizen Developer เราสามารถเอา Component พวกนี้มา Reuse ใช้ได้เพื่อให้เราสามารถ Deliver งานได้เร็วขึ้น</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AyPzxRSKs7oYMOdKg1mwLQ.png" /></figure><p>แต่ถ้าเราอยากใช้ของแปลกๆ ที่ไม่มีใน Forge ล่ะ หรือเราอาจจะได้ Requirement ยากๆมาเช่นการ Read excel file และต้อง Validate excel file ตาม Business requirement🥹🥹</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/245/0*n49V0riIE3awb0FE" /></figure><p>Developer อย่างเราจะบอกว่าทำไม่ได้ก็ยังไงอยู่ ทางออกของเราคือ ……External Logic ยังไงล่าาาาาาาาาาาาาาาาาา</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*1yOyB_SsR_9j58W7Rm-DNw.png" /></figure><p>Concept ของวิธีการนี้คือ เราจะต้อง Create Project C# Class Library (.NET 6)ขึ้นมาแล้ว Add package OutSystems.ExternalLibraries.SDK จาก nuget</p><p>เริ่มจากการ Create Interface ขึ้นมาก่อนแล้ว Add tag OSInterface ไว้ข้างบน ตรงนี้จะทำให้ OutSystems รู้ว่า Interface เรามี method อะไรบ้าง อยากให้มันทำอะไรได้บ้างมาใส่ในนี้ 🫡🫡</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/539/1*BCHOPlPU50zSBzStAtXJrg.png" /><figcaption>Interface</figcaption></figure><p>เสร็จแล้วสร้าง Class มา Implement Interface อันนี้เราสามารถ Add package ที่เราอยากใช้จาก nuget มาได้ ที่เราลองใช้คือ ThaiBahtText</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*cFzD8wX5QHOf6nXnSmaeGQ.png" /></figure><p>เป็นอันเสร็จ 🤭🤭🤭🤭 ทีนี้เรามา Build กันเปิด Terminal build เลยจ้า</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*GQmvmUEaQ3yT6mWdsvYAgA.png" /><figcaption>Build command</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tCjkZYcwUlwaHt24" /></figure><p>เราจะได้ file มาหน้าตาประมาณนี้ ให้ Zip file ทั้งหมดไว้เดี๋ยวเรา Upload code เราขึ้นไปไว้ที่ ODC Portal กัน **เช็คก่อนว่ามี dll บางตัวเป็น Hidden file รึป่าว Zip ไปให้ครบเดี๋ยว error Could not load file or assembly</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*cWcpJ4htFlIsYaw3xsTWTA.png" /></figure><p>มา Create library ใน ODC Portal ต่อ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g2AlM7kvAegfqj9QW6krNQ.png" /></figure><p>Upload file Zip code ของเรากันเล๊ยยยยยยยย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJ1CneoD2GzXCXeZ_val1A.png" /></figure><p>ทีนี้ OutSystems จะให้เราเช็คอีกทีว่า Code เรามี method อะไรบ้าง ถ้ามาครบก็ Publish เลยจร้า</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l7ZVjUvGSJKFGVIVD2RKgA.png" /></figure><p>ครั้งแรกที่เรา Publish ต้องมา Release ก่อนนะตรงนี้จะให้เราใส่ Note เลือก version ตรงนี้สำคัญใส่เถอะ เดี๋ยวเพื่อนมาดูต่อมันจะร้อง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zn31ohEZy4boV9crfMOvBw.png" /></figure><p>ทีนี้เราจะเอา code เราไป run บน OutSystems ได้ละจ้าาา</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*OOxsy9Ao9LF8G1-HKz_O2A.png" /></figure><p>เทสพรี่เทส🥳🥳🥳🥳🥳🥳🥳🥳</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OYXZXCCLELgkC-wQiiHrOw.png" /></figure><p>P.S. Custom Code เข้าไปได้แต่ก็มี limitation อยู่บ้าง เช่น Input ใส่ได้ 5.5 mb ถ้าคิดว่าจะ Upload file ใหญ่ๆเข้าไปอย่าหาทำ ไปใช้วิธี ฝากไฟล์ไว้บน Cloud Storage พวก AWS s3, Azure Blob Storage แล้วเขียน code ไปเอามาอีกที หรือ upload ไปไว้บน OutSystems นั่นแหละ แล้ว expose Logic ไปเป็น REST API ให้ C# code หยิบไปใช้</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54e529d97a3f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Adobe Sign & OutSystems Part-1]]></title>
            <link>https://medium.com/@p.yosysp/adobe-sign-outsystems-part-1-e45cf1636d6c?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/e45cf1636d6c</guid>
            <category><![CDATA[outsystems]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[adobe-sign]]></category>
            <category><![CDATA[low-code-development]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Wed, 01 May 2024 04:20:46 GMT</pubDate>
            <atom:updated>2024-05-01T10:43:17.319Z</atom:updated>
            <content:encoded><![CDATA[<p>หลังจาก OutSystems Release ODC version ออกมา วิธีการใช้งานบางอย่าง หรือการทำงานกับ 3rd party connector บางตัวก็จะมีสิ่งที่เปลี่ยนแปลงไปบ้างจาก version OutSystems 11, Adobe Sign เองก็เป็นตัวที่มีการเปลี่ยนแปลงไปครับ วันนี้เรามีตัวอย่างการ Integration กับ Adobe Sign โดยเรายังสามารถใช้ API Adobe sign ในการทำ Integration ได้ครับ</p><p>Step 1 : อย่างแรกคือเราต้องมี Account Adobe Sign ซะก่อน</p><p>Step 2 : ต่อไปให้เราสร้าง Integration Key ขึ้นมาโดย <strong>ให้เลือกเฉพาะ permissions ที่เราจะใช้ </strong>เราจะได้ Key มาใช้สำหรับเป็น Access Token ที่ API permission ที่จะใช้เช็คจาก API Document <a href="https://secure.na1.adobesign.com/public/docs/restapi/v6">REST API — Document e-signature Software — Acrobat Sign (adobesign.com)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*35FWm3XyGmb5jq0Wo4qn2w.png" /></figure><p>Step 3 : Install package Multipart/form-data, MultipartFormDataParser (Out of the box ของ ODC version เอา form-data ออกจาก หน้า consume REST API ไปแล้วนะครับ)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*My_pk7rv6BwnJ0L54svH8Q.png" /></figure><p>Step 4 : เรามาดูที่ Postman กันบ้างว่าเรามี Input, Output หน้าตาเป็นแบบไหนกันบ้าง อันนี้เราจะเห็นว่าทำการส่งไฟล์ไปแล้วเราจะได้ documentId กลับมา ต้องเก็บไว้ใช้ตอน call api send agreement ให้ end user sign</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PPD77X9xJU3q-QP-c-Lu8w.png" /></figure><p>Step 5 : Create comsume REST API</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/790/1*wrkih3cB7W6Zj3jQbrFHQQ.png" /></figure><p>Step 6 : Add Header</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*HvMQmlq56GzFS-m42a3WxA.png" /></figure><p>Step 7 : Create Secret Setting หลังจาก Publish เราจะสามารถ Manage value ได้บน ODC Portal **Secret เรียกใช้ได้บน Server Action only</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/1*t6VJ9um9iPy7zQmSmnMXtA.png" /></figure><p>Step 8 : Create Server Action Input ให้รับ FileName, FileContent (Binary)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/598/1*XYENLmHjAgRrviEStZy4AQ.png" /></figure><p>Step 9 : Action PartAdd ใส่ Detail แบบในรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/298/1*pT_5-0h5GjvtKIABYIcK2Q.png" /></figure><p>Step 10 : MultipartFormDataCreate เอา Parts จาก PartAdd event</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*jy8DSCdAhFfcoqw0ipVIig.png" /></figure><p>Step 11 : Call REST API ใส่ Detail แบบในรูปจะเห็นว่าใช้ Secret Setting เก็บข้อมูล secret value (พวก Key, setting config ให้มาเก็บที่นี่)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*mcqhGesWR9umYQSe0PU7bA.png" /></figure><p>Step 12 : Assign value ไปที่ Output variable</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/279/1*SesRM-YwADG_6mFYAlYZrg.png" /></figure><p>ลองเอามาใช้งานบนหน้า screen กันบ้าง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*bhra7Sm6YsJTkFXXGdN4YA.png" /></figure><p>สำหรับ Part 2–3 เราจะมาดูเรื่อง Send Agreements, Web hook กันครับ</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e45cf1636d6c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nintex RPA Reusable Global Function]]></title>
            <link>https://medium.com/@p.yosysp/nintex-rpa-reusable-global-function-0dfb2d60eed7?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/0dfb2d60eed7</guid>
            <category><![CDATA[best-practices]]></category>
            <category><![CDATA[nintex]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[robotics-automation]]></category>
            <category><![CDATA[rpa-tools]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Wed, 14 Feb 2024 14:39:29 GMT</pubDate>
            <atom:updated>2024-02-14T14:39:29.094Z</atom:updated>
            <content:encoded><![CDATA[<p>การใช้งาน Nintex RPA เรามักจะเคยเจอปัญหาที่ต้องทำงานโดยใช้คำสั่งเดิมซ้ำๆกันหลายๆครั้ง เช่นการคำนวณ การจัดการไฟล์ต่างๆบนเครื่องโดยที่วิธีการทำงานข้างในเหมือนเดิม ถ้าหากเราใช้วิธีการทำงานแบบถึกๆ เหมือนปกติเราก็จะต้องใช้ Advanced command เดิมๆซ้ำไปเรื่อยๆทำให้ command เยอะจนดูรกไปหมด แต่ละคนก็มี style ในการ config command ไม่เหมือนกัน คนมาดูงานต่อจะรู้สึกอยากสาปแช่งเราในใจ 🤬😡😤</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*OpPBOxpiBqDXFmJ19n5vPg.png" /></figure><p>Nintex RPA มีวิธีการทำงานที่จะช่วยเราส่วนนี้ได้ด้วยการสร้าง Reusable global function จะช่วยลดระยะเวลาการทำงานของเราลงได้ และทำให้ Command ใน wizard ของเราดูอ่านง่าย มีการทำงานที่ถูกต้องและเป็นไปตาม Standard ที่กำหนดขึ้นได้</p><p>เรามาลองสร้าง Global Function กันในตัวอย่างนี้เราจะสร้าง function ที่คำนวณค่า vat 7% โดยให้ wizard ส่งค่าราคาสินค้ารวม vat เข้ามาใน function แล้วให้คำนวณค่า ราคาไม่รวม vat, vat เอาออกมาใช้ใน wizard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/303/1*X-X0TmCj_e4OLx_lkMxYQg.png" /><figcaption>Let’s create Global Function</figcaption></figure><p>ใน function จะทำงานโดย set value priceWithoutVat ด้วย priceWithVat * 0.93 และคิด 7% ที่เหลือเก็บไว้ใน vatValue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*x8j8y4evgM05mqOigB1vaA.png" /></figure><p>ใน wizard เราจะใช้ Global function ได้เลย ในตัวอย่างจะกำหนดให้ priceWithVat = 13000 ก่อนเริ่มทำงานใน function เราก็จะได้ pricewithoutvat, vatvalue ที่คิดมาจากใน function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/915/1*VkOk2eT3C_4mQSfAzYXbFw.png" /></figure><p>เอ แล้วช่องตรงกลาง function ที่เรียกว่า Run-time Adjustment zone ล่ะถ้าเรา set variable ลงไปในนั้นมันจะไปทำงานตอนไหนของ function ล่ะ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/710/1*2S90n4mPhd65BtPjuL9Ihw.png" /></figure><p>แก้ function ให้ show message ขึ้นมา</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*T6XV6ztMJACD6icy0T12Nw.png" /></figure><p>จะเห็นว่าตอน function start จะยังไม่มีค่า</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*eNJtVNHnGUklgZmuKndC6A.png" /></figure><p>มันจะใช้ได้ใน function end ของ global function</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*sWmRqCFbGnOoiABt2_L5cA.png" /></figure><p>ถ้าจะ pass variable ไปใน Run-time Adjustment Zone ของ global function ให้ไป config command ไว้ที่ function end แต่ถ้าทำงานใน function start ให้ prepare variable ให้เสร็จก่อน function ทำงาน</p><p>แต่ตาม article Nintex จะบอกไว้ว่า Global Function ประกอบด้วย 3 components <a href="https://help.nintex.com/en-us/kryonrpa/22.03/Content/Studio/TheCatalog/Global_Functions.htm?Highlight=global">Global Functions (nintex.com)</a></p><ol><li>Function Start ใช้ set default values หรือเตรียม parameter สำหรับ action</li><li>Run-time Adjustment Zone ใช้ใส่ command ก่อนที่จะเข้ามาทำงานใน global function</li><li>Function End คือ Main action ตาม best practice ควรมา config การทำงานในนี้</li></ol><p>งั้นที่ถูกหน้าตาของ global function ควรจะเป็นแบบนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/715/1*1ecri-fRN4Ed6TzF0D3SiQ.png" /><figcaption>Move action to function end</figcaption></figure><p>และ Wizard ที่มาเรียกใช้ควรจะมีหน้าตาแบบนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*TIHpn6Td96GFEspXfMEJHA.png" /></figure><p>ก็จะทำงานได้ถูกต้อง</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*Xi8mcth2KTKQlZivfHsmbA.png" /></figure><p>ปล. การใช้ global function ทำให้เราลดการทำงานลงได้จริง แต่ๆๆๆระวังเวลาที่จะแก้ด้วยบางทีเราเอาไปใช้หลายที่แล้วแล้วเราไปแก้ทำให้กระทบการทำงานหลายจุดถ้าจะแก้ก็ลองดูก่อนว่ามีใครเอาไปใช้บ้างนะ😅😅</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0dfb2d60eed7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Add task Nintex RPA ด้วย API]]></title>
            <link>https://medium.com/@p.yosysp/add-task-nintex-rpa-%E0%B8%94%E0%B9%89%E0%B8%A7%E0%B8%A2-api-bcd28d9feedc?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcd28d9feedc</guid>
            <category><![CDATA[kryon]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[robotics-automation]]></category>
            <category><![CDATA[rpa-tools]]></category>
            <category><![CDATA[nintex]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Thu, 18 Jan 2024 10:02:04 GMT</pubDate>
            <atom:updated>2024-01-18T10:02:04.259Z</atom:updated>
            <content:encoded><![CDATA[<p>โดยปกติแล้วเราจะนิยมใช้ RPA ในการทำงานกับระบบที่ไม่สามารถให้ application หรือระบบอื่นเข้ามา interface ด้วยได้ โดยเราจะสามารถทำ application ออกมาได้โดยคิดแค่ว่าจะต้องส่งข้อมูลอะไรมาให้ bot บ้างเพื่อให้ bot เอาไปทำงานต่อได้</p><p>วิธีการที่เราจะสั่งให้ bot เริ่มทำงานนอกจากการใช้ trigger เช่น Email, Schedule, File, Folder, Database ยังสามารถทำได้โดยผ่าน api ของ bot เอง โดยที่จะมี api อยู่ 2ตัวหลักๆ คือ</p><ul><li>GetAccessToken</li><li>AddTask</li></ul><p>GetAccessToken เราจะใช้เพื่อเอา access token มาใช้ authen api อื่นๆ ให้ set Body เป็น x-www-from-urlencoded โดยข้างในจะมี 4 properties</p><ul><li>client_id = fix ค่าเป็น kryon-public-api</li><li>grant_type = fix ค่าเป็น password</li><li>username = username ของ bot</li><li>password = password ของ bot</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*22JOkdsSpL9bS08mxuRejA.png" /><figcaption>API GetAccessToken</figcaption></figure><p>หลังจากเราได้ access token มาแล้ว เราสามารถเอาไปใช้ authen ใน api addtask ได้เลยโดยให้ Set Authentication เป็น Bearer Token แล้วเอา access token ใสในช่อง Token</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PbT-74dzuKqnjIb7HNYSOQ.png" /><figcaption>API Authen</figcaption></figure><p>ในส่วนของ Body ให้เลือกเป็น GraphQL ในส่วนของ Query ให้ใส่ detail ตามตัวอย่างโดย field ที่สำคัญ คือ Field queueId คือ Id ของ Queue ที่เราต้องการใช้ name คือ ชื่อ task, wizardCustomName คือ UniqueName ของ Wizard ที่จะให้ bot run และใน variables เราจะสามารถ pass value ไปให้ bot ใช้งานต่อได้ ใน wizard แค่ตั้งชื่อให้ตรงกัน ก็ใช้งานได้เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*bupn0lLRc9sc2QCaWY4s9g.png" /><figcaption>Add Task</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PDgbGFiZA0IqpRhVttgQrg.png" /><figcaption>Request/Response</figcaption></figure><p>เราสามารถ Monitor task ของเราผ่าน Console Plus หรือจะเอา id ของ task ไปเรียก gettaskbyId ก็ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m4jVrCK6gGHBCjqeNq6TGA.png" /><figcaption>Console Plus</figcaption></figure><p>Tips</p><p>** Filed queueId ดูได้จาก api getQueues</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ueDqsNz0En4XjlSGsmPn0w.png" /><figcaption>GetQueues</figcaption></figure><p>* wizardCustomName ต้องไป set ที่ Nintex Studio</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*G2LPc9uXo0CxHym-_6b5dw.png" /><figcaption>Wizard custom IDs</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TeKqa4WgyV0R6-fukve7fQ.png" /><figcaption>Set WizardCustomIDs</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcd28d9feedc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nintex Kryon RPA REST API]]></title>
            <link>https://medium.com/@p.yosysp/nintex-kryon-rpa-rest-api-280abf0abe74?source=rss-553a349b71ed------2</link>
            <guid isPermaLink="false">https://medium.com/p/280abf0abe74</guid>
            <category><![CDATA[rpa-tools]]></category>
            <category><![CDATA[nintex]]></category>
            <category><![CDATA[kryon]]></category>
            <category><![CDATA[bots]]></category>
            <dc:creator><![CDATA[Yossapon Pornparisa (Yos)]]></dc:creator>
            <pubDate>Tue, 19 Sep 2023 08:03:45 GMT</pubDate>
            <atom:updated>2023-09-19T08:03:45.566Z</atom:updated>
            <content:encoded><![CDATA[<p>use case RPA วันนี้ เราจะมาใช้ Bot ส่งข้อมูล Exchange rate โดยการนำข้อมูลจาก REST API มาใช้ส่ง email กันครับ</p><p>เริ่มจากการสร้าง New Wizard ขึ้นมาโดยการคลิกขวาที่ Folder ที่เราต้องการเก็บเลือก New Wizard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*ln7lzQOGkzCjOSWgG0RaEQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/396/1*Z_KhLCPGDe03C-532UtNQw.png" /><figcaption>ตั้งชื่อ Wizard</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/186/1*ud-O8W9bs6XPwo_pD2lS9w.png" /><figcaption>กดปุ่ม GET STARTED</figcaption></figure><p>ให้เลือกโดยเริ่มจากการทำ Advanced Commands ก่อน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*lmuqAtiTpVFAKPe8WJT0BA.png" /></figure><p>ค้นหา command Call REST API method</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*OVDE0nc-tLEWY87gegbG0Q.png" /></figure><p>Configure ให้เอาข้อมูลมาเก็บไว้ใน ตัวแปร HTTPResponseBody ตามรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/584/1*IPu6M-O6zpvCIZ2sozaiqA.png" /></figure><p>ให้ใช้ command Query JSON เพื่อเอาข้อมูลที่ได้มาเก็บในตัวแปร เอาไว้ใช้งานต่อ แยกเป็น 3 ตัวคือ Currencies, BuyingPrices, SellingPrices</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*sk_lJ2Ex4hwoSbPN5QRQTA.png" /><figcaption>Query JSON Command</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*Gd_zawZW5vbrg0yw59fj5A.png" /><figcaption>Command อ่านข้อมูล สกุลเงิน</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*XAgqz9ZJnn2cdnCAU0x7hw.png" /><figcaption>Command อ่านค่าราคาซื้อ</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*_TQazJI_DtmLKkDYLt11Sw.png" /><figcaption>Command อ่านข้อมูลราคาขาย</figcaption></figure><p>หลังจากทดสอบจะเห็นว่าเราจะได้ข้อมูลออกมาโดยมีเครื่องหมาย Semicolon คั่นแบบในรูป</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*lAhY7uNNWBugdGnRJ9f5SA.png" /><figcaption>View variable list</figcaption></figure><h4>Tips JSONPATH query สามารถเข้าไปกด test ได้โดยการกด JSONPATH Tester</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*wCjMZGoRYa0gRyhcvYVJRQ.png" /><figcaption>JSONPATH Tester</figcaption></figure><p>หลังจากนั้นให้เอาตัวอย่าง Json มาลองทดสอบ และเขียน query สำหรับทดสอบ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*J-7Snn9mzeFT2dMOUfb1Pw.png" /><figcaption>JSONPATH Tester</figcaption></figure><p>ต่อไปเราจะเอาข้อมูลที่ได้ออกมาส่ง Email ในตัว demo จะใช้การเปิด web browser แล้วใช้การ input ข้อมูลเข้าไป แต่เวลาใช้งานจริงๆ แนะนำให้ใช้ Command Send email message และใช้ credential จากใน credential vault จะดีกว่า เพราะ Browser หรือ App outlook เราจะต้อง handle event ต่างๆที่อาจจะเกิดขึ้น เช่นพวกแจ้งเตือนต่างๆ bot อาจจะทำผิดพลาดได้ ส่วนวิธีการทำสามารถดูจาก article <a href="https://help.nintex.com/en-us/kryonrpa/22.03/Content/Console/WorkingwithMicrosoft365ExchangeModernAuthentication/Azure_Configuration_for_Modern_Authentication.htm">Azure Configuration for Modern Authentication (nintex.com)</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/308/1*ovQ2n81qr3gCBN48WYAZIQ.png" /></figure><p>ให้ใช้ Command Open URL link เพื่อเปิด Browser ขึ้นมา</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/351/1*LVBV-mUh9NKUdQONHsMd0A.png" /></figure><p>และเปิด Outlook บน Browser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*gYNr67qm6R14FYHkUi2ruw.png" /></figure><p>หลังจากนั้นเราจะทำการ Record หน้า Web โดยให้กดที่ปุ่ม Normal View มุมขวาล่างของหน้าจอ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*1ufdfovHacxOTLk7dn9c7g.png" /></figure><p>กดที่ปุ่ม Append recording</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*B3QtVmYoRHxhNpL9ab4Icg.png" /></figure><p>โดยก่อนที่เราจะ Record ให้ทำการเปิด Web ที่ต้องการขึ้นมารอก่อน ปุ่ม Record default จะเป็น F11 สามารถเปลี่ยนได้ หลังจากเริ่ม Record ให้กดปุ่ม N (เป็น key ลัดสำหรับ New mail)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DtoMLcBQJIyPRSGX9FRJcw.png" /><figcaption>Start Record</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*1yozxb4mnNF8dIxW9LRQyg.png" /><figcaption>Cursor จะมาอยู่ที่ช่อง To</figcaption></figure><p>หลังจากนั้นให้เรา กด F10 เพื่อหยุด record ได้เลย หลังจากนั้นเราจะได้ Step เพื่อมา 1 ตัว ให้เราเปลี่ยน Step end เป็น Advanced commands เพื่อจะ ให้ Bot ทำงานต่อ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uhr9-1lYDy5u9JcWCZz_Pw.png" /><figcaption>Run Advanced command after browser record</figcaption></figure><p>เสร็จแล้วให้กดปุ่ม Advanced commands view เพื่อกลับไปที่หน้า Advanced command</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*NtJCkJ06CjIgXXr5JoqrEw.png" /><figcaption>Advanced commands view</figcaption></figure><p>ให้ใช้ Command Input text เพื่อพิมพ์ Email ลงในช่อง Mail to</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*epOVm27ouRwAFKmIm1czMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*fYJHhkzxM5wk1qrc0EE6lg.png" /></figure><p>ใช้ command Use keyboard shortcut เพื่อกดปุ่ม Tab 2 ครั้ง เพื่อให้ cursor ไปอยู่ที่ช่อง Subject</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*6fTJzUtAQqsQ6e6-jJqXmw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*0r-_LLiH47GOqAMYz7L7Sg.png" /></figure><p>เสร็จแล้วใช้ command Input text อีกครั้งเพื่อพิมพ์ Subject</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*bNTWiYuU_iOB_Qh9_3gX1A.png" /><figcaption>Subject</figcaption></figure><p>และใช้ command Use keyboard shortcut เพื่อกดปุ่ม Tab 1 ครั้งให้ cursor ลงมาอยู่ที่ Mail body</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*xI3iEXLqtayVobtv268Acg.png" /></figure><p>ต่อไปเราจะใช้ command Loop table เพื่อเขียนเนื้อ email กัน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*M7noZmOYC3xuqXCEy5_jfg.png" /><figcaption>Loop Table</figcaption></figure><p>เราจะให้ Loop จากตัวแปร Currencies ที่มีตัวคั่นเป็น Semicolon และเก็บ ค่าสกุลเงินลงในตัวแปร Currency</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/366/1*F2ugaSDYs4keXEWHcC7kIA.png" /><figcaption>Loop configure</figcaption></figure><p>และใน Loop เราจะทำการ Split ข้อมูลราคาขายและราคาซื้อ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/421/1*1oqj34aonI5_taqHCDZ2hA.png" /></figure><p>ซึ่งในการ Split เราจะกำหนดให้ ตัวคั่นคือ Semicolon และเก็บค่าแรกไว้ในตัวแปร SellingPrice และเก็บส่วนที่เหลือไว้ในตัวแปร SellingPrices เหมือนเดิม</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*V6HC73UcAe7XHkwXkQ-0zw.png" /><figcaption>Split sell price</figcaption></figure><p>ราคาขายก็ทำในลักษณะเดิม</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/475/1*_FXxutuMdGHA3vL3s4iE0g.png" /><figcaption>Split buying price</figcaption></figure><p>เริ่มพิมพ์ด้วย command Input text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*3VZgTQAUwjfKR27hi3M7Sg.png" /></figure><p>ใส่ข้อมูลสกุลเงิน</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*8qKzzF_5knc64XxP0iew7A.png" /></figure><p>ใช้ command use keyboard shortcut กด enter เพื่อขึ้นบรรทัดใหม่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*Zu95-ZuKaFftfyD0Nbgd_Q.png" /></figure><p>ใส่ข้อมูลราคาขายด้วย command Input text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*Fc_y5M7SyO75mX4HJYyUIA.png" /></figure><p>ใช้ command use keyboard shortcut กด enter เพื่อขึ้นบรรทัดใหม่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*Zu95-ZuKaFftfyD0Nbgd_Q.png" /></figure><p>ใส่ข้อมูลราคาขายด้วย command Input text</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/336/1*0dAZrSTpKq7NgwxZjPy_tg.png" /></figure><p>ใช้ command use keyboard shortcut กด enter เพื่อขึ้นบรรทัดใหม่</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*Zu95-ZuKaFftfyD0Nbgd_Q.png" /></figure><p>จากนั้นเราจะได้การทำงานใน loop แบบในภาพ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*ypA7a_BgfSLEEtuDpV3xtA.png" /></figure><p>หลังจากทดสอบเราจะได้ผลลัพธ์แบบนี้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*rteidM4DqFtRaMJFpj4rNw.png" /></figure><p>หลังจากเราก็จะสามารถใช้ key Left Ctrl+Enter เพื่อส่ง Email ออกไปจริงๆ ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/338/1*CeHF5zoO7KYVv0IQnzokwg.png" /></figure><p>หรือจะเพิ่ม การ delay หลังจากกดส่งซัก 5 วินาที แล้วตามด้วย key Alt+F4 เพื่อปิด browser ด้วยก็ได้</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*ZYBPp9x1YBu9ofNHLbMFVg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*XgAnOMVQFMZTB0K8L72PEA.png" /></figure><p>เสร็จเรียบร้อย ได้ Email แบบนี้เลย สามารถเอาไปตกแต่งเพิ่มเติม ตาม email template ก็ได้ครับ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/394/1*Ui07kENXk_SN8UFW8DyjEw.png" /></figure><h4>Tips ก่อนจบ</h4><p>เวลาที่ config advanced commands เราจะเห็นว่าบางช่องเป็น icon สีฟ้า เราสามารถเลือกตัวแปรมาใส่ได้เลย</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*Y71DxgPaDTqnqAkNCF_0uA.png" /></figure><p>แต่ถ้าไปเจอช่องที่เป็น icon สีเทา เราสามารถใช้เครื่องหมาย $ตามด้วยชื่อตัวแปรแล้วปิดด้วย $ อีกทีได้ครับ</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/337/1*oPjgr37xNKoY7CSSwsixqw.png" /></figure><p>สุดท้ายนี้ขอฝากช่องทางติดตามของ Bluebik Vulcan ไว้ด้วยนะครับ</p><p>Website: <a href="https://www.vulcan.bluebik.com/">https://www.vulcan.bluebik.com/</a><br>Facebook: <a href="https://www.facebook.com/bluebikvulcan">https://www.facebook.com/bluebikvulcan</a><br>Medium: <a href="https://medium.com/@bluebikvulcan">https://medium.com/@bluebikvulcan</a><br>Youtube: <a href="https://www.youtube.com/@BluebikVulcan_2023">https://www.youtube.com/@BluebikVulcan_2023</a><br>LinkedIn — linkedin.com/company/bluebik-vulcan/</p><p>Written by: Yossapon Pornparisa, Technical Consultant, Bluebik Vulcan</p><p>#BluebikVulcan #MakeRealityAlive</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=280abf0abe74" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>