Allow Invocation From Browser privilege not working
Hi, I have an activity in Data-Corr-Email class which is being called from an HTML rule and when I am trying to save it I am getting an error- "Allow invocation from browser - When enabling invocation from the browser, activities should be secured with a privilege. This is done to ensure that only operators with properly configured access roles can execute the rule.". This activity used to work in previous version but is throwing this error in new version.
I tried to add some existing privileges but it is not working, I even tried to create a privilege of my own and defined it in Data-Corr-Email ARO with level 5 but the activity is not getting picked up. Can someone pls help me with this.
@soodn
The error message you are receiving indicates that you need to secure your activity with a privilege when enabling invocation from the browser. This is done to ensure that only operators with properly configured access roles can execute the rule.
To secure an activity, you need to determine the correct privilege and assign that privilege to the role that is authorized to run that activity. You can follow the steps mentioned in the "Setting a privilege to secure an activity" article in the Pega Platform version 8.8 documentation to secure your activity.
In your case, since you are trying to secure an activity in the Data-Corr-Email class, you need to create a privilege that applies to that class. You can then assign that privilege to the access role that is authorized to run the activity.
If you have already created a privilege and assigned it to the access role, make sure that the privilege is listed in the "Privileges" column for that access role. Also, make sure that the privilege class and name are entered correctly in the activity rule form.