You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Assistance in Using ROQL to bulk edit agent email domain suffix in Connect Object Explorer

Accepted answer
13
Views
6
Comments
edited Apr 3, 2020 5:39PM in System Admin and Configuration 6 comments

Summary

Using ROQL to bulk edit agent email domain suffix

Content

ROQL Statement 

SELECT Account FROM Account WHERE Emails.Address LIKE '%@old.net.invalid')->next(); while($account = $res->next()) {printf("Found Account ID: %d <br />", $account->ID);$arr = explode("@", $account->Emails[0]->Address);
$first = $arr[0];$account->Emails[0]->Address = $first."@new.com.invalid";$account->save();

 

Error×
near ")": syntax error

Version

19C

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!