function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
AbAb 

issue with count parameter in URL

Hello,

I have a usecase wher user do some actions on page and some screen changes happens.
Is some cases, the users cancel the screen and redos few step.

I see that when parameter is count=1 all is working fine but when its count=2 or count=3, it fails, 

what can be real issue and what steps can i take to solve it 
https://sandoxurl/lightning/lightning/o/Case/new?recordTypeId=012XXXXG&count=1
Thank you for suggestion
Best Answer chosen by Ab
AnudeepAnudeep (Salesforce Developers) 
Hi Sandrine, 

I tried this in my org and did not experience this behavior. The default URL I see had count=1. I tried with count=2, count=3 and did not experience any error
 
https://agopagoni123-dev-ed.lightning.force.com/lightning/o/Case/new?recordTypeId=0126F000001KF8cQAG&count=1

Can you help me understand what this parameter is because I could not find it anywhere in the documentation and I am unsure if it is a valid change to modify it? 

Definitely it is not creating multiple records in my case 

All Answers

AnudeepAnudeep (Salesforce Developers) 
Hi Sandrine, 

I tried this in my org and did not experience this behavior. The default URL I see had count=1. I tried with count=2, count=3 and did not experience any error
 
https://agopagoni123-dev-ed.lightning.force.com/lightning/o/Case/new?recordTypeId=0126F000001KF8cQAG&count=1

Can you help me understand what this parameter is because I could not find it anywhere in the documentation and I am unsure if it is a valid change to modify it? 

Definitely it is not creating multiple records in my case 
This was selected as the best answer
David Roberts 4David Roberts 4
Here's an example where this occurs: count added to url (https://www.infallibletechie.com/2019/12/overriding-new-button-in-salesforce.html). I haven't found a solution as yet.