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
18
Views
6
Comments
edited Jun 8, 2022 11:32AM in General Technical Discussions 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!