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
Register for a Free Workshop.png

Register for a Free Workshop

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

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,310)