cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ABCDEFG1234
New Member

How to add Incremental Case ID when a new submission from MS Forms

Hi all,

 

I want to build a flow that can add case ID in an excel table when a new submission from MS Forms.

Here is my flow:

 

ABCDEFG1234_0-1621765142798.pngABCDEFG1234_1-1621765175488.png

Compose

 

formatDateTime(outputs('Get_response_details')?['body/submitDate'],'yyyyMMMdd')

 

ABCDEFG1234_2-1621765197885.png

 

ABCDEFG1234_3-1621765224045.png

 

 

concat(outputs('Get_response_details')?['body/rd25c02c1f80f4a6db71f80dabadff5f9'], '_', outputs('Compose'))
length(outputs('List_rows_present_in_a_table')?['body/value'])

 

ABCDEFG1234_4-1621765253506.png

 

There is a pattern for the CaseID, such as: HumanResource_2021MAY23_001, but the last three digit will be reset if the Date is change.

 

The case ID can be

HumanResource_2021MAY23_001

Transportation_2021MAY23_002

HumanResource_2021MAY24_001

 

The flow can be ran successfully, but there is no update on the table.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Thank you for your comment, I find another away to achieve the purpose.

 

Here is my flow:

ABCDEFG1234_1-1621819442738.png

formatDateTime(body('Convert_time_zone'),'yyyyMMMdd')

 

ABCDEFG1234_0-1621819384453.png

 

concat(outputs('Get_response_details')?['body/rd25c02c1f80f4a6db71f80dabadff5f9'], outputs('Compose'))

ABCDEFG1234_2-1621819476526.png

length(body('Filter_array'))

ABCDEFG1234_3-1621819508044.png

 

ABCDEFG1234_4-1621819520179.png

 

Finally, we can add a row into a table.

View solution in original post

2 REPLIES 2
PrasadAthalye
Community Champion
Community Champion

Can you check variable value of Approval ID within Flow run? Is it correctly generated?

 

Can you check data type of the column in excel ? Is it Number?

 

Finally, can you please hardcode a value and see if that goes through?

 

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

Thank you for your comment, I find another away to achieve the purpose.

 

Here is my flow:

ABCDEFG1234_1-1621819442738.png

formatDateTime(body('Convert_time_zone'),'yyyyMMMdd')

 

ABCDEFG1234_0-1621819384453.png

 

concat(outputs('Get_response_details')?['body/rd25c02c1f80f4a6db71f80dabadff5f9'], outputs('Compose'))

ABCDEFG1234_2-1621819476526.png

length(body('Filter_array'))

ABCDEFG1234_3-1621819508044.png

 

ABCDEFG1234_4-1621819520179.png

 

Finally, we can add a row into a table.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,722)