cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ABCDEFG1234
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.

2 REPLIES 2
v-LilyW-msft
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

v-LilyW-msft_0-1620985919806.png

Flow in detail

v-LilyW-msft_1-1620985919809.png

Use the Expression:formatDateTime(outputs('Get_response_details')?['body/submitDate'],'ddMMyyyy') to format the Submissiontime as ddMMyyyy.

v-LilyW-msft_2-1620985919813.png

Then please fill the action and use contact function to contact department_Datetime_ResponseID

v-LilyW-msft_3-1620985919815.png

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:

v-LilyW-msft_4-1620985919822.png

Then save Flow and can test it.

When a new response is submitted as below

v-LilyW-msft_5-1620985919824.png

The row can be created

v-LilyW-msft_6-1620985919826.png

Hope the content above may help you.

Best Regards

Lily

6C01784A-4ADB-4F54-8377-4821E25C2E66.png

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

Announcements
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)