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
Microsoft
Microsoft

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
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,289)