@Selvakumar – you could transform your paragraphs temporarily with the method:
and retrieve the numbering from that.
Isn't the generated auto text immediately available as a string? Check the Help on this.
Does this contain the value you are looking for? http://jongware.mit.edu/idcs5js/pc_Paragraph.html#bulletsAndNumberingResultText
(I never used this style of heading numbering myself, wouldn't know how to check )
@Jongware – That's correct!
Sasekumar should give you 10 out of 10 points.
Of course, if only because of correct netEtiquette. Unfortunately, as shown by Sasekumar's profile, this person does not know anything about "marking a question as answered" -- or perhaps isn't really bothered by displaying some courtesy towards people who are attempting to help for free & in their own time.
I think I'll have to do without that extra tenner.