-
-
Notifications
You must be signed in to change notification settings - Fork 171
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logger in Flow questions #195
Comments
Hi @vr8hub - these are all great questions! And unfortunately, I have some gaps in the README, so some of this functionality is not currently documented as well as it should be. I need to spend some time working purely on documentation, so I'll shift focus to that in a few weeks by working on these 2 issues:
As far as your Flow-specific questions, here's some additional details - I'll eventually include some of this info in the wiki as well.
Logger uses "platform events" to handle creating log entries - platform events are a special type of object within Salesforce. Just like Flow, platform events have some per-transaction limits. In this case, any time Logger saves log entries (from Flow, Apex, etc), it counts towards a Salesforce per-transaction limit called "'Publish Immediate' DML statements".
Great question, and this definitely relates to the previous question - keeping in mind that you have to handle telling Logger that you want it to save log entries, you can do so 2 ways:
Here are some screenshots of where you can see the "related record" details
Hopefully this helps clarify on some of the functionality, but please let me know if you have any follow-up questions! |
Excellent, thank you for the quick and detailed response! You didn't say explicitly, but you mentioned it in passing—the value we would put in the "Save Log" field is True? (As in the global variable, or just the word?) Thanks again—everything you have there is very helpful and will be a great addition to the documentation. |
@vr8hub sorry about that! Yeah, you would use the global variable Let me know if you need anything else! |
Just some suggestions for the wiki when you get there:
|
@vr8hub this is some fantastic feedback! I'll definitely include these areas in the wiki - thanks for the suggestions! And as far as the default value for Logging Level, it will use 'DEBUG' if not specified within your Flow. |
@vr8hub another update on this - I've finished the first step of just creating the wiki by taking content from README and creating separate pages in the wiki. My next step is to start expanding on the content to incorporate additional details, including a lot of your questions/content from this issue. It's definitely a work in progress, but I'll be actively working on expanding the wiki over the coming weeks. If you think of any other questions/details that you think should be added to the wiki, just let me know! |
I've read the Readme multiple times and browsed the fields in the Log and LogEntry objects, but I'm still missing some information re how to use this in Flow. (No Apex development here, so this will be used purely in Flow.)
Thanks so much, and I apologize in advance if I missed where these were addressed.
The text was updated successfully, but these errors were encountered: