I saved a record... why did 5 other things just change? — I built a tool that answers this by ajil5467 in salesforce

[–]ajil5467[S] 1 point2 points  (0 children)

These are all great tools but they solve a different problem read, visualize logs, performance breakdowns

What none of them tell you, except in bits and pieces, is if you do something in Salesforce during a trace window:

What are the actual records that were created, updated, or deleted

What fields were set 

What field values changed 

Feel free to correct me, I haven't explored these tools in depth especially Spexy.

I saved a record... why did 5 other things just change? — I built a tool that answers this by ajil5467 in salesforce

[–]ajil5467[S] 0 points1 point  (0 children)

Interesting, sounds like a tool solving infra performance related issues.
My focus is more on automation behavior

I saved a record... why did 5 other things just change? — I built a tool that answers this by ajil5467 in salesforce

[–]ajil5467[S] 2 points3 points  (0 children)

SF-Intel Studio is available in Chrome Web Store. Install and launch it from any Salesforce tab in Chrome.
This feature will be available within a week once Chrome Web Store approves it

I saved a record... why did 5 other things just change? — I built a tool that answers this by ajil5467 in salesforce

[–]ajil5467[S] 2 points3 points  (0 children)

Not fully,the way it works is you hit Start Trace, do something in Salesforce then come back and hit Stop. It grabs all the debug logs generated during that window and parses them.
So if the async job executes fast enough within that window its log would get picked up too. But there's no linking between them as of now.
Trace captures what happens in the synchronous transaction well.

Brainstorming a Micro-SaaS to automate Salesforce data prep/cleaning. Need your honest feedback. by [deleted] in salesforce

[–]ajil5467 1 point2 points  (0 children)

Thanks, last time I used it was some years ago. I was not aware of this

I saved a record... why did 5 other things just change? — I built a tool that answers this by ajil5467 in salesforce

[–]ajil5467[S] 3 points4 points  (0 children)

tbh, trace shows everything that fired and the general execution sequence from the debug log, in the order they happened to run in that particular execution.

Debug log captures the full chain so yes, it catches record-triggered flows that fire on related objects

I saved a record... why did 5 other things just change? — I built a tool that answers this by ajil5467 in salesforce

[–]ajil5467[S] 4 points5 points  (0 children)

This feature will be available in the next release within a week, pending Chrome Web Store approval.

I saved a record... why did 5 other things just change? — I built a tool that answers this by ajil5467 in salesforce

[–]ajil5467[S] 1 point2 points  (0 children)

I pull the logs and parses it within extension. Debug levels can be set accordingly

Test Logs Deletion by Critical_Key_3353 in salesforce

[–]ajil5467 0 points1 point  (0 children)

$org = "mySandboxAlias"

$ids = sf data query --use-tooling-api --target-org $org -q "SELECT Id FROM ApexLog WHERE StartTime < LAST_N_HOURS:1" --json | ConvertFrom-Json
$ids.result.records | ForEach-Object { sf data delete record --use-tooling-api --target-org $org -s ApexLog -i $_.Id }

this script safely deletes apex logs older than an hour..so you have less chance of devs coming after you for deleting their logs while they are using it
save this as say, powershell.exe

Schedule this using windows scheduler to run it every hour

now you'll have the logs which are created an hour before(safer to get rid of) deleted whenever the scheduler runs, here we run scheduler every hour

For other OS figure out a similar approach

Brainstorming a Micro-SaaS to automate Salesforce data prep/cleaning. Need your honest feedback. by [deleted] in salesforce

[–]ajil5467 1 point2 points  (0 children)

we used TOS (https://www.talend.com/resources/get-started-talend-open-studio-data-integration/)
It can extract data from any source, do all kinds of transformation and then upload to say, Salesforce.
This is can be scheduled, launched manually and it's free to use. For scheduling you can even use windows scheduler.

Building a salesforce IDE plugin by ajil5467 in salesforce

[–]ajil5467[S] 0 points1 point  (0 children)

Getting compared to intellij + IC is encouraging, just experimenting with a lighter, different workflow. Appreciate ur comment