cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
smathanagopalan
Frequent Visitor

Auto Increment Revision- Sharepoint list- Alpha values

I am creating a document workflow. When a document is approved, a column named "Revision" should increment to the next Alpha letter. Example: A to B or B to C etc...

I have tried initialize variable and increment variable and i am able to do it numerically, but not sure how to use alpha numbers.

Can someone here help please?

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @smathanagopalan,

 

Based on your Flow, I create such Flow as below to increase the alpha letter:

add(indexof(variables('AlphaLetters'),outputs('Get_file_properties')?['body/RevesionValue']),1)
substring(variables('AlphaLetters'),outputs('Compose'),1)

Screenshot 2021-02-24 172152.jpg

 

Screenshot 2021-02-24 172219.jpg

 

Screenshot 2021-02-24 172239.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

5 REPLIES 5
v-litu-msft
Community Support
Community Support

Hi @smathanagopalan,

 

We could store the 26 Alpha letters into a string variable, then initialize an integer variable and set it to 0.

Then use substring() function could find the corresponding index to letter:

0-A

1-B

2-C

.

.

.

25-Z

substring(variables('AlphaLetters'),variables('Index'),1)

Then you could increase the index to make the alpha letter increase.

Screenshot 2021-02-23 161013.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you @v-litu-msft I have uploaded my flow and my comments. Can you please help?

fEzsEGxYE2.png

v-litu-msft
Community Support
Community Support

Hi @smathanagopalan,

 

Based on your Flow, I create such Flow as below to increase the alpha letter:

add(indexof(variables('AlphaLetters'),outputs('Get_file_properties')?['body/RevesionValue']),1)
substring(variables('AlphaLetters'),outputs('Compose'),1)

Screenshot 2021-02-24 172152.jpg

 

Screenshot 2021-02-24 172219.jpg

 

Screenshot 2021-02-24 172239.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hello @v-litu-msft 

Thanks for taking the time to help me out. I was working on a deadline, so could not wait for your reply. I got it done based on substring and counter. However, if my revisions get past Z, they need to be numbered AA,AB, AC etc...

I am not sure how i will be able to do that, as the substring function relates to only one digit at a time. Do you know how to go from Z to AA, AB based on my code please?

NVjBLQZiEh.png

got it figured out. Thank you.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (76,014)