You need to sign in to do that
Don't have an account?
Eric V
Use Apex in Transaction Security Policies Challenge
Hi,
I'm trying to complete the "Use Apex in Transaction Security Policies" Challenge.
I think i have to modify this apex class :
1 global class NewUrlPolicyCondition implements TxnSecurity.PolicyCondition {
2
3 public boolean evaluate(TxnSecurity.Event e) {
4
5 return false;
6 }
7 }
The problem is that I know nothing about code, class or whatever.
Can someone tell me how to set a condition ?
Thanks.
I'm trying to complete the "Use Apex in Transaction Security Policies" Challenge.
I think i have to modify this apex class :
1 global class NewUrlPolicyCondition implements TxnSecurity.PolicyCondition {
2
3 public boolean evaluate(TxnSecurity.Event e) {
4
5 return false;
6 }
7 }
The problem is that I know nothing about code, class or whatever.
Can someone tell me how to set a condition ?
Thanks.
I just got this one.
Basically, I had to first remove the New URL Transaction Security Policy I created in the earlier unit and also delete the NewURLPolicyCondition class it created.
Then I re-created by New URL Transaction Security Policy - but with a condition (any one of them) with a criteria of 2 days.
Then you'll be able to go in and edit the class per what you need to do for the challenge on this one.
Lynda
All Answers
I just got this one.
Basically, I had to first remove the New URL Transaction Security Policy I created in the earlier unit and also delete the NewURLPolicyCondition class it created.
Then I re-created by New URL Transaction Security Policy - but with a condition (any one of them) with a criteria of 2 days.
Then you'll be able to go in and edit the class per what you need to do for the challenge on this one.
Lynda
Its asking for the following..
1.Modify the following apex class: newurlPolicyCondition
2. Change the platform condition
3. Old platform condition value: eObj.Platform == 'useanewtrailheadplayground'
4. New platform condition value: eObj.Platform == 'besupercarefulwiththis'
Any help here would be great!
https://trailhead.salesforce.com/en/modules/transaction_security/units/transaction_security_custom_policy
Which had this:
And then modified it to use the text above and ended up with this: