cancel
Showing results for 
Search instead for 
Did you mean: 

sendmail dynamically

Former Member
0 Kudos

Hi All,

I am new to workflow .I have requirment to trigger workflow and send mail using person number(pernr). at this stage we are taking person number dynamically from bapi to BO , till BO i am able to get the number, but i am unable to send mail through workflow. I tried to pass email id dynamically since in BO KEY FIELD lenght is (70) and mail id length is 241.

Please guide me in this issue .

Thanks & Regadrs,

Padma

Accepted Solutions (0)

Answers (3)

Answers (3)

saumya_govil
Active Contributor
0 Kudos

HI Padma,

I am not sure if I got it right, I guess you are able to get the pernr value in the BO (in an attribute I assume) but not able to send mail using this.

If the same BO has been used to trigger the workflow using an event, please check the event binding with the workflow container. Create a workflow container variable of Object type and pass the BO to it. Then use the attribute storing the pernr as the recipient of the send mail step.

Hope this helps!

Regards,

Saumya

narin_nandivada3
Active Contributor
0 Kudos

Hi,

Create an Attribute in BO and set Email ID to that attribute.. and use that attribute with BO instance in Workflow...

check this thread to know how to set value to BO []

Revert for any clarifications

Regards

Narin

Former Member
0 Kudos

Hi Narin,

Thank you, i follwed the steps as you suggested but i am unable to call attribute to bind in workflow. Can you please suggest me detail and clear steps.

Thanks in advacne.

Regards,

Padma

former_member193382
Active Contributor
0 Kudos

Hi,

what is the exact requirement? why are you passing the mail ID dynamically when you have the pernr?

If the employee's HR data (Communication Infotype -0105) & User data (SU01D) are properly maintained then the system will automatically fetched the mail ID and send it to the concerned person's inbox.

Regards,

Raj