Hi all master.
I create a Microsoft form that allow applicant to submit the accident case to me. One of the multiple choice question let them select their department. (Eg: Transport, Accounting, Human Resource,They only can select one answer)
after that, I want to create the case ID in my excel table with a pattern: Department_Datetime_serial number: Transport_13052021_001
I am confused about how to check the case ID automatically and add a new incremental case ID by power automation.
Hi @ABCDEFG1234
Thank you for posting.
According to your description you want to check the case ID automatically and add a new incremental case ID by power automation.
Do you have to increase caseID from 001, it can increase from 1? If you can accept the caseID increase from 1, please refer to the following steps:
This is my flow
Flow in detail
Use the Expression:formatDateTime(outputs('Get_response_details')?['body/submitDate'],'ddMMyyyy') to format the Submissiontime as ‘ddMMyyyy’.
Then please fill the action and use contact function to contact department_Datetime_ResponseID
Expression:concat(outputs('Get_response_details')?['body/r6700fddef5514795b705250530a85db6'],'_',outputs('Compose'),'_',triggerOutputs()?['body/resourceData/responseId'])
You can select the content in contact from the screenshot as below:
Then save Flow and can test it.
When a new response is submitted as below:
The row can be created
Hope the content above may help you.
Best Regards
Lily
is it possible to add one more step to check whether the Serial number existing or not??
The serial number will be reset to 001 in each month.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
75 | |
22 | |
18 | |
17 | |
13 |
User | Count |
---|---|
127 | |
38 | |
29 | |
28 | |
26 |