Call ReloadSection several times on activity


I need to call ReloadSection by activity many times.
For example I tried to call ReloadSection three times by one activity.

1. Wait 5 seconds
2. Updated property
3. Call ReloadSection
I looped from step 1 to step 3 for 3 times, but it was only refreshed on the last timing of calling Reload Section.

Is there any way to call ReloadSection several times on activity?


Keep up to date on this post and subscribe to comments

October 11, 2019 - 4:26am


I never seen such configuration calling ReloadSection within the same activity multiple times. Can you explain why you think you should do this exactly?

October 11, 2019 - 4:45am
Response to MarcLasserre_GCS

The customer's proxy server returns error if there isn't any actin in defined time.(For example 120 seconds.)
But if we refresh every 30 seconds we can avoid the error.

In addition we call API of ex system and it needs 3 to 5 minutes to return the response.
While calling the API , we want refresh the section automatically.

October 11, 2019 - 7:28am

I am not sure if there is any other way to achieve your requirement.


On paper the approach you have taken should work.  Did you trace the activity with the steps to check if you missed anything ?

October 17, 2019 - 9:45pm
Response to Krithiga_GCS

Hi , Krithiga.

Sorry late for reply.

I thought that only the last loop of calling ReloadSection worked correctly before, but it was wrong.
I set refresh action of the button and call the activity, so the section was refreshed only once.
It seems that I couldn't call ReloadSection correctly by activity.

I made simple PoC to call ReloadSection and it seems that not working.
I put my setting as attached file, could you check the file and advise me if there are any wrong?



October 18, 2019 - 3:26am

Coud you try use Branch method instead of Call?

October 22, 2019 - 10:05pm
Response to vaspoz


I tried use Branch instead of Call , but nothing has changed.
The section was not refreshed by activity.

October 18, 2019 - 3:27am

Plus, you could assing to the button an action "Reload Section" and trace it to see how Pega does it

October 22, 2019 - 11:49pm
Response to vaspoz

I assigned both "Run activity" and "Reload Section" to button action and traced them.
It seems that when use "Reload Section"  it has AJAXTrackID on Parameter page, on the other hand "Run Activity" doesn't.

Could you check the attached "Diff_Run_Action_BW_Refresh_THIS_Section.xlsx" file?

October 24, 2019 - 1:59am
Response to kimh1

I reckon the problem is in the StreamClass parameter. You have provided "Rule-HTML-Section" but you must use the section's class, where it belongs to (Work class or Data class fo your application)

October 31, 2019 - 9:14pm

I tried to set section's class to StreamClass parameter instead of "Rule-HTML-Section" , but it showed "Missing stream key property pyID" error on step 10 of ReloadSection.
So I'm looking for work around for this requirement.

November 1, 2019 - 4:08am
Response to kimh1

weird.. does your section contain pyID property?

November 6, 2019 - 11:27pm
Response to vaspoz

Hi vaspoz

Customer withdraw the requirement , so I stopped investigation.
Thank you for your cooperation.