Site Review and Confirmed Staffing emails go to a principal or athletic director whose address is typed by hand on each building. When people move, the emails don't follow them. The plan: bring each employee's PCN into Salesforce through the nightly staff sync, and let Salesforce work out the right approver every time it sends.
Ten characters, three facts. Salesforce splits the PCN with formulas, so the sync only has to send the raw value.
The nightly staff sync stays as it is, with one new column. Everything after that happens inside Salesforce.
Measured in Salesforce this morning.
Today a principal who left in 2023 still looks current. A lookup by location alone would email them.
The lookup runs at every send and every reminder, so a change in the sync fixes the next email on its own. Nobody has to edit the request. Pick a case:
Athletic directors follow the same chain with their own flagged codes. The rule lives in a code table the Facilities team maintains, with no names in code.
Salesforce can't know about a change before the next sync. These keep that window small.
Never reuse a stored recipient. The most anything can be off is one sync cycle.
Site Review goes to both by default, so a vacancy never stalls a request.
One line per building whose approver changed overnight, sent to the rental office.
An afternoon sync (or a push when something changes) halves the window.
Schema and building cleanup can start now. Validation waits on the first PCN load.
The six things the feed spec needs.