🤖Generate Unique ID when Submit Microsoft Form with Power Automate
Get Started
เข้าไปที่หน้าเว็บ https://asia.flow.microsoft.com/en-us/

คลิก My flows แล้วเลือก New Automated from blank

ทำการกำหนด Flow name และเลือก When a new response is submitted แล้วคลิก Create คำเตือนชื่อต้องมากกว่า 3 ตัวขึ้นไป

เลือก Form Id แล้วคลิก Next step

เลือก Get response details ทำการกรอก Form Id และ Response Id แล้วคลิก Next step

เลือก Initialize variable ตั้งชื่อ varGenerateID กำหนด Type เป็น String

ทำการระบุ Expression แล้วคลิก Next step
add(mul(int(formatDateTime(outputs('Get_response_details')?['body/submitDate'],'yy', 'th-SE')), 1000), triggerOutputs()?['body/resourceData/responseId'])
เลือก Create item แล้วทำการกรอกค่าที่รับมาจาก Microsoft Form เพื่อลง SharePoint List โดยตรง Title เลือกเป็น varGenerateID

Last updated
Was this helpful?