Hi Kapil, Is there any way to do this in flow, as we can't iterate over new records in flow. I am unable to give them the next count. It doesn't work when we create multiple records.
Hello Harish, try to print values in console.log before assigning it to a variable. If a value is coming null then you must add a check before assigning it like : if(value != null){Your Code here}
Hi Kapil,
Is there any way to do this in flow, as we can't iterate over new records in flow. I am unable to give them the next count.
It doesn't work when we create multiple records.
Would be difficult in flow because iteration won’t be happening. I will try to find a workaround.
Each video is worth watching and informative... Keep it on Kapil 👍
Thanks you, glad you like it!
It's working As expected, But when two users create the record simultaneously, it creates a duplicate number. I am facing this issue now.
Hey that can only happen if you are using async process. Keep in sync instead.
Hi, If we have autonumber id as 'Abc-0001', then how should we do it?
Just add the prefix in the number before saving it to the object. And trim it while getting the data.
This code will fail when conList exceeds 200000 records. I am facing the same issue. Any other solution found ?
Apologies, I have never tried it with this much of records. Maybe a batch will do the job.
Batch seems not to be the solution here. Still figuring out. Parallelism issue also adds up here. Good stuff.
@@RAHULKUMAR-mv5mb glad to hear that ! If you find the solution do share it here as well so it could help other !
This code is not working sir... I don't knw why its giving error 'system. nullpointerexception' Attempt to de-reference
Hello Harish, try to print values in console.log before assigning it to a variable. If a value is coming null then you must add a check before assigning it like : if(value != null){Your Code here}