How do I select Heading 1 after para.
What, exactly, are you doing?
You can set a "next style" to use for any paragraph style you define...
Yes, I can use that option,
You didn't say you were scripting. You should give complete details to obtain the best answers, and scripting questions really should be asked in the scripting forum: InDesign Scripting
Retrieving data ...