You need to use tempting to add data dynamically to add data to text block. could you please check this doc and sample
Thanks,
Nikitha.
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.