You need to sign in to do that
Don't have an account?
Sourav P
Hi,
I have a custom object, with one checkbox field as "Record Used". I want to know that if the remaining Record Used with checkbox not ticked ( false) less than or equal to 500, it should send us the alert, so that we can add more records to be used .
I tried to create it through VisualFlows, and later called it through the PB, But It seems i am not able to create a proper flows, can anyone plz modify me, where i need to add elements. I as well need to send email to specific people if it reached 500.
Below is my VF screenshots,
I used ,
1. Fast lookup element - To fetch all object Records
2. Loop element - To loop through all object records
3. Assignment element - To assign the potential value to a variable and find the count.
4. Record Update element - To update all object records with the total count.
1.
2.
3.
4.
5.
Visualflows issue while checking the number of remaining record numbers under certain criteria within the same custom object
Hi,
I have a custom object, with one checkbox field as "Record Used". I want to know that if the remaining Record Used with checkbox not ticked ( false) less than or equal to 500, it should send us the alert, so that we can add more records to be used .
I tried to create it through VisualFlows, and later called it through the PB, But It seems i am not able to create a proper flows, can anyone plz modify me, where i need to add elements. I as well need to send email to specific people if it reached 500.
Below is my VF screenshots,
I used ,
1. Fast lookup element - To fetch all object Records
2. Loop element - To loop through all object records
3. Assignment element - To assign the potential value to a variable and find the count.
4. Record Update element - To update all object records with the total count.
1.
2.
3.
4.
5.
How can i test now ? Thnx
All Answers
You can not achieve it through Flow or process builder. You will have to go with custom code solution.
- For each time record update either true or false, you will have to increase or decrease the counter in Total count. Total count must be stored somewhere either in custom setting, to which each time you can update. And once if you find that counter reached to 500, send email alert through Code.
Hope this helps.Thanks,
Nagendra
I tried the below code, But what i need is the email should send once , every day till the count is 500 or less. But i think what i have wrote is , whenever teh field " Not used" is changed it will send emails. So, Is that a way in teh beelow code that i can make it send once per day?
How can i test now ? Thnx