Call SendSimpleEmail from Activity causes an Error

I’m trying to call SendSimpleEmail from an activity in my application. However, when I enter ‘Call SendSimpleEmail’ in the Method it says ‘could not be found’. If I try to click Save, it gives me the error:

Method—Rule-Obj-Activity instance not found: Code-Pega-List.SendSimpleEmail. Details: Invalid value for Activity name passed to ActivityAssembler

It seems people use this in activities frequently but I don’t know what I’ve done wrong here. I’m on Pega 8.6.0 on a cloud instance.

@IanB5391

As per the error:

Seems you are calling the SendSimpleEmail from a step page of context Code-Pega-List.
But SendSimpleEmail is of class Work-.

Please update step page of context which can inherit Work-.

Hope this helps!
Correct if my understanding is wrong.

Hi @IanB5391,

You can use Call Work-.SendSimpleEmail or call SendSimpleEmail with step page class as Work- class.

Regards,

K Chandra Prakash.

@KAMINENICHANDRAP Thank you, using Work-.SendSimpleEmail in the Method seems to have done the trick. Appreciate your help.

@ManjunathaC Thanks for your response. Using Work-.SendSimpleEmail in the Method seems to have done the trick. Appreciate your help.