+ Start a Discussion
SandrineSandrine 

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 Sandrine
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.