Showing results for 
Search instead for 
Did you mean: 
New Member

How to check and add new serial number on the excel table

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.

Community Support
Community Support

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



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



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.

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (5,010)