You need to sign in to do that
Don't have an account?
m 10
test1 code coverage
Hi Team,
Pleasehelp me below class need to write apex class.
we will appricate baest answer
Apex class:
global static String setExperienceId(String expId) {
// Return null if there is no error, else it will return the error message
system.debug('>>>expId>>>'+expId);
try {
if (expId != null) {
Site.setExperienceId(expId);
}
return null;
} catch (Exception ex) {
return ex.getMessage();
}
}
Pleasehelp me below class need to write apex class.
we will appricate baest answer
Apex class:
global static String setExperienceId(String expId) {
// Return null if there is no error, else it will return the error message
system.debug('>>>expId>>>'+expId);
try {
if (expId != null) {
Site.setExperienceId(expId);
}
return null;
} catch (Exception ex) {
return ex.getMessage();
}
}
If it helps please like and mark as correct, as it may help others.
Try below snippet.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar