cancel
Showing results for 
Search instead for 
Did you mean: 

CPS/redwood task to update the Email addresses modification

Former Member
0 Kudos

Hi All,

We have configured to raise an error event in CPS production system in

case of any job failure. This will send email to user ID's maintained

in raise comment fields.

Now there is a change in email domain of the mail server. So we need to

edit all the email ID's maintained. There are around 1800 jobs in

production and more that 1800 jobs in quality system.

Manually changing them is very tedious.

Kindly let us know if there is any standard predefined job in CPS to

perform this activity or there is any predefined script.

Accepted Solutions (0)

Answers (1)

Answers (1)

nanda_kumar21
Active Contributor
0 Kudos

There is no "predefined" job or script for this.

You can get the API documentation from SAP and use the examples to build your own script.

In my opinion this is the not the solution, you should opt for a centralized solution since your new domain may change again and you will have to edit 1800 jobs again one way or other.

thanks

Nanda

gmblom
Active Contributor
0 Kudos

Indeed, while you are on it, change the parameters to have a reference to a Table value. Something like =Variables.getString('alertEmail') which will refer to the Table System_Variables with key alertEmail.

Now for the future you will only have to make your change in one place.

Regards Gerben

Former Member
0 Kudos

Hi Blom

Can you please elaborate more on this.. Which parameters needs to be changed  .

former_member206885
Participant
0 Kudos


As Gerben suggested, store the values in a table and reference them using the below query. So you can change it at one place instead of changing in all the jobs in future.

=Table.getColumnString('System_Variables', 'Emailid', 'Columnname')

System_Variables is the table name,

Email id is the user email id

Column name: The column name where you are storing the value.

Thanks,

Tinku