Business need: accounts that have bought from us still say Warm or Cold, because someone updates them by hand. The rule: any account with a won deal is rated Hot. Here it becomes a flow that runs on its own.
In this video
- A SOQL source: every account with a won deal, its rating, number of deals and total
- A model keyed on the account ID, so each account is tracked
- A destination that writes back to Salesforce with an sObject Collections update, up to 200 accounts per request
- Field mapping: the account ID to the record ID, and the fixed value Hot into Rating
- Previewing the exact request before anything is written, then running it live: 7 read, 7 sent, none failed
- Checking the result in Salesforce, then giving the flow a schedule
Read the transcript
Accounts that bought from us still say Warm or Cold. Someone updates them by hand, when they remember. Rule: any account with a won deal becomes Hot. The business rule: an account that has bought from us should be rated Hot. Today, someone does that by hand. Let’s turn it into a flow.
First, what should the flow read? Every account with a won deal, with its rating, number of deals and total. Preview it. These accounts bought from us, yet several still say Warm or Cold. Create the source. Next, a model: the rows the flow will send.
The account ID is the key, so each account is tracked. Now the destination: write back to Salesforce. Choose the collections update, which sends up to two hundred accounts in one request. The record type is Account. Join them in a new flow. Pick the model, then the destination.
Map the account ID to the record’s ID. Then type the word Hot: a fixed value, written into the Rating field. Before anything is written, preview the request. This is exactly what Salesforce will receive: the account’s ID, and Rating, Hot. Happy with it? Create the flow.
Now run it, live. Seven records read, seven sent, none failed. Open the records to see what happened to each account. The proof is in Salesforce itself. Read the same accounts again. Every account that bought from us is now Hot.
Finally, give the flow a schedule, and the rule looks after itself.
Keep going
- All three videos: DataConnect: Salesforce Integrations
- Open the app and try it: dataconnect.techiechirag.com
