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
chaithaly gowdachaithaly gowda 

How to set the field value of an object through URL?

I am trying to create a custom URL button , through which i want to set field value.. is there any way to do it?
 
Best Answer chosen by chaithaly gowda
Khan AnasKhan Anas (Salesforce Developers) 
Hi Chaithaly,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://www.mstsolutions.com/technical/url-hack-button-lightning-experience/

https://salesforcediaries.com/2019/05/28/replacing-url-hacks-with-pre-defined-actions-in-lightning-experience/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas

All Answers

Khan AnasKhan Anas (Salesforce Developers) 
Hi Chaithaly,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://www.mstsolutions.com/technical/url-hack-button-lightning-experience/

https://salesforcediaries.com/2019/05/28/replacing-url-hacks-with-pre-defined-actions-in-lightning-experience/

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
This was selected as the best answer
Ajay K DubediAjay K Dubedi
Hi,

* First you need to go to page source then search which field you want to populate and get its id 

* After that paste that id to your Url:

    salesforce.com/003/e?retURL=%2F003%2Fo (http://salesforce.com/003/e?retURL=%2F003%2Fo)
    salesforce.com/003/e?retURL=%2F003%2Fo&con18zip=Usa (http://salesforce.com/003/e?retURL=%2F003%2Fo)

* Please take a reference from videos:
 
    https://www.youtube.com/watch?v=r70g_6CiHXY

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com