Skip to content
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

New Rule: check if recordId is saved as record and not as String #31

Open
fkramer690 opened this issue Jul 20, 2023 · 4 comments
Open
Labels
new rule A new suggestion for a best practice to be included in the scanner

Comments

@fkramer690
Copy link

fkramer690 commented Jul 20, 2023

Since some releases, it is possible to pass the recordId as record to a screenflow by record page or quick action. This saves you one DML operation and you can directly access the whole record. So it would be helpful to check the flows based on this setting. I assume it is an easy one for you to check if the flow contains and return true/false

<variables>
        <name>recordId</name>
        <dataType>String</dataType>
        <isCollection>false</isCollection>
        <isInput>true</isInput>
        <isOutput>false</isOutput>
    </variables>
@RubenHalman
Copy link
Member

It might just be the time rn, but I am not wrapping my head around this one yet. I will return with a question probably later!

@RubenHalman RubenHalman transferred this issue from Lightning-Flow-Scanner/lightning-flow-scanner-sfdx Jul 20, 2023
@fkramer690
Copy link
Author

What can I do for you? Is this article helpful? https://salesforcetime.com/2021/10/20/using-an-action-to-pass-the-entire-record-to-a-flow/

@RubenHalman RubenHalman added enhancement New feature or request new rule A new suggestion for a best practice to be included in the scanner labels Aug 2, 2023
@RubenHalman RubenHalman changed the title Idea for new ruleset: check if recordId is saved as record and not as String New Rule: check if recordId is saved as record and not as String Nov 12, 2023
@RubenHalman RubenHalman added question Further information is requested and removed new rule A new suggestion for a best practice to be included in the scanner labels Feb 29, 2024
@RubenHalman RubenHalman added new rule A new suggestion for a best practice to be included in the scanner and removed enhancement New feature or request question Further information is requested labels Mar 20, 2024
@RubenHalman
Copy link
Member

@fkramer690 I just realize I totally misunderstood this and now see you can use a record as starting point, sorry!! Would this rule be only to visual flows?

@RubenHalman RubenHalman self-assigned this Mar 23, 2024
@fkramer690
Copy link
Author

@RubenHalman auto launched flows would also work but not record triggered flows

@RubenHalman RubenHalman removed their assignment May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new rule A new suggestion for a best practice to be included in the scanner
Projects
Development

No branches or pull requests

2 participants